]> xenbits.xensource.com Git - seabios.git/commit
block: Report drive->sectors using "%u" instead of "%d"
authorKevin O'Connor <kevin@koconnor.net>
Wed, 23 Dec 2015 20:42:35 +0000 (15:42 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 28 Dec 2015 16:48:27 +0000 (11:48 -0500)
commitd61ca79ff48393d9f47c80c7ae52c51b51d91d0f
treec27cfd2f6bc7d58bb299cd2e5e5914c8c4ce7980
parent82f327976865ba151153a04b584fc5d0a1fc5d9b
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>
src/block.c
src/hw/blockcmd.c