diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-12-23 15:42:35 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-12-28 11:48:27 -0500 |
commit | d61ca79ff48393d9f47c80c7ae52c51b51d91d0f (patch) | |
tree | c27cfd2f6bc7d58bb299cd2e5e5914c8c4ce7980 /src/hw/blockcmd.c | |
parent | 82f327976865ba151153a04b584fc5d0a1fc5d9b (diff) | |
download | seabios-d61ca79ff48393d9f47c80c7ae52c51b51d91d0f.zip seabios-d61ca79ff48393d9f47c80c7ae52c51b51d91d0f.tar.gz seabios-d61ca79ff48393d9f47c80c7ae52c51b51d91d0f.tar.bz2 |
block: Report drive->sectors using "%u" instead of "%d"
The sector count is a 64bit number that is often reported as a 32bit
number (due to limitations in dprintf). Consistently use "%u"
reporting to avoid confusing negative numbers.
Reported-by: Tobias Diedrich <tobiasdiedrich@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/blockcmd.c')
-rw-r--r-- | src/hw/blockcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/blockcmd.c b/src/hw/blockcmd.c index 0725b46..093c5d7 100644 --- a/src/hw/blockcmd.c +++ b/src/hw/blockcmd.c @@ -232,7 +232,7 @@ scsi_drive_setup(struct drive_s *drive, const char *s, int prio) return -1; } drive->sectors = (u64)be32_to_cpu(capdata.sectors) + 1; - dprintf(1, "%s blksize=%d sectors=%d\n" + dprintf(1, "%s blksize=%d sectors=%u\n" , s, drive->blksize, (unsigned)drive->sectors); // We do not recover from USB stalls, so try to be safe and avoid |