]> git.ipfire.org Git - thirdparty/coreutils.git/commit
dd: also spell out size on memory exhaustion
authorPaul R. Eggert <eggert@cs.ucla.edu>
Tue, 13 Jul 2010 00:12:43 +0000 (17:12 -0700)
committerPaul R. Eggert <eggert@lnxsrv01.seas.ucla.edu>
Tue, 13 Jul 2010 00:13:13 +0000 (17:13 -0700)
commit335b59b9625758f92ba82cd6b7138f7423df60ef
treed896d35bdad0452f24fc6aac5cd685203c46b036
parente5ca54448e50c117cf2d7d3491a2bc2f48ae0715
dd: also spell out size on memory exhaustion

* src/dd.c (dd_copy): Use requested blocksize (not adjusted) in
diagnostic, to forestall user complaints that the numbers don't
match exactly.  Report both exact and human-readable sizes, using
a message format that is consistent with both "BBBB bytes (N XB)
copied" in dd.c and "memory exhausted" in lib/xmalloc.c.
src/dd.c