diff options
author | alfred <alfred@FreeBSD.org> | 2003-12-28 13:32:49 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2003-12-28 13:32:49 +0000 |
commit | 32e06d7c5c32ceb665b8a98531dc862b5938839a (patch) | |
tree | 0eaa632c80a256aa30d9c0de761d2b716b2714b2 /usr.sbin/burncd | |
parent | 3eace67a0cfb0c5d46d7c0b7a002da4bd15f3c5d (diff) | |
download | FreeBSD-src-32e06d7c5c32ceb665b8a98531dc862b5938839a.zip FreeBSD-src-32e06d7c5c32ceb665b8a98531dc862b5938839a.tar.gz |
Use intmax_t to avoid wrap on large images in verbose output.
Diffstat (limited to 'usr.sbin/burncd')
-rw-r--r-- | usr.sbin/burncd/burncd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c index 5878d9b..778a6a6 100644 --- a/usr.sbin/burncd/burncd.c +++ b/usr.sbin/burncd/burncd.c @@ -362,9 +362,10 @@ add_track(char *name, int block_size, int block_type, int nogap) if (tracks[notracks].file_size / tracks[notracks].block_size != roundup_blocks(&tracks[notracks])) pad = 1; - fprintf(stderr, - "adding type 0x%02x file %s size %d KB %d blocks %s\n", - tracks[notracks].block_type, name, (int)sb.st_size/1024, + fprintf(stderr, + "adding type 0x%02x file %s size %jd KB %d blocks %s\n", + tracks[notracks].block_type, name, + (intmax_t)sb.st_size/1024, roundup_blocks(&tracks[notracks]), pad ? "(0 padded)" : ""); } |