diff options
author | asami <asami@FreeBSD.org> | 1998-02-11 02:23:31 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1998-02-11 02:23:31 +0000 |
commit | 961b4eea9b84052fffc572e1a344b273fc5f1842 (patch) | |
tree | ef15e551f0e1acf483037f2a66a93c157bb134ab /bin/dd/misc.c | |
parent | 5cb8382644780b0373c0ffb7f8578503885b687f (diff) | |
download | FreeBSD-src-961b4eea9b84052fffc572e1a344b273fc5f1842.zip FreeBSD-src-961b4eea9b84052fffc572e1a344b273fc5f1842.tar.gz |
Fix printing for bytes read > 4G.
Reviewed by: bde
Diffstat (limited to 'bin/dd/misc.c')
-rw-r--r-- | bin/dd/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/misc.c b/bin/dd/misc.c index d75fd34..7270150 100644 --- a/bin/dd/misc.c +++ b/bin/dd/misc.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: misc.c,v 1.9 1997/10/09 10:50:54 eivind Exp $ + * $Id: misc.c,v 1.10 1997/12/15 20:37:43 eivind Exp $ */ #ifndef lint @@ -82,7 +82,7 @@ summary() (void)write(STDERR_FILENO, buf, strlen(buf)); } (void)snprintf(buf, sizeof(buf), - "%u bytes transferred in %.6f secs (%.0f bytes/sec)\n", + "%qu bytes transferred in %.6f secs (%.0f bytes/sec)\n", st.bytes, secs, st.bytes / secs); (void)write(STDERR_FILENO, buf, strlen(buf)); } |