From 32e06d7c5c32ceb665b8a98531dc862b5938839a Mon Sep 17 00:00:00 2001 From: alfred Date: Sun, 28 Dec 2003 13:32:49 +0000 Subject: [PATCH] Use intmax_t to avoid wrap on large images in verbose output. --- usr.sbin/burncd/burncd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c index 5878d9b20377..778a6a6b439d 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)" : ""); }