Skip to content

Commit bda7f21

Browse files
committed
remove logs from dd. this make fifo tests fail
1 parent 1208ebd commit bda7f21

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/uu/dd/src/dd.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -794,12 +794,7 @@ impl Write for Dest {
794794
Err(e) => Err(e),
795795
}
796796
}
797-
Self::Stdout(stdout) => {
798-
eprintln!("[DD] Writing {} bytes to stdout", buf.len());
799-
let result = stdout.write(buf);
800-
eprintln!("[DD] Write result: {result:?}");
801-
result
802-
}
797+
Self::Stdout(stdout) => stdout.write(buf),
803798
#[cfg(unix)]
804799
Self::Fifo(f) => f.write(buf),
805800
#[cfg(unix)]
@@ -809,12 +804,7 @@ impl Write for Dest {
809804

810805
fn flush(&mut self) -> io::Result<()> {
811806
match self {
812-
Self::Stdout(stdout) => {
813-
eprintln!("[DD] Flushing stdout");
814-
let result = stdout.flush();
815-
eprintln!("[DD] Flush result: {result:?}");
816-
result
817-
}
807+
Self::Stdout(stdout) => stdout.flush(),
818808
Self::File(f, _) => f.flush(),
819809
#[cfg(unix)]
820810
Self::Fifo(f) => f.flush(),

0 commit comments

Comments
 (0)