aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-03 00:30:50 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-03 00:30:50 +0000
commite8a196911c98a9c05c76e8b59589e2b0dbf7d894 (patch)
treed899594997e7e41afcf404c7456eccb87a1cd6b5 /file.c
parent3f2f2929ebfb2aee247e8ac18156a0b8da762569 (diff)
Use "%ld", not "%u", to print "long" values.
svn path=/trunk/; revision=9962
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/file.c b/file.c
index 2ed57b6978..12b979119f 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.355 2004/02/03 00:16:58 ulfl Exp $
+ * $Id: file.c,v 1.356 2004/02/03 00:30:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -315,11 +315,11 @@ set_display_filename(capture_file *cf)
}
if (cf->f_len/1024/1024 > 10) {
- size_str = g_strdup_printf("%u MB", cf->f_len/1024/1024);
+ size_str = g_strdup_printf("%ld MB", cf->f_len/1024/1024);
} else if (cf->f_len/1024 > 10) {
- size_str = g_strdup_printf("%u KB", cf->f_len/1024);
+ size_str = g_strdup_printf("%ld KB", cf->f_len/1024);
} else {
- size_str = g_strdup_printf("%u bytes", cf->f_len);
+ size_str = g_strdup_printf("%ld bytes", cf->f_len);
}
if (cf->drops_known) {