mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Use intmax_t to avoid wrap on large images in verbose output.
This commit is contained in:
parent
673fbcacfb
commit
87d736a28d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123937
@ -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)" : "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user