Use %j and cast off_t to intmax_t for now to fix build.

Noticed by:	bz
This commit is contained in:
Xin LI 2012-05-23 17:49:59 +00:00
parent af27459ace
commit 2920997423

View File

@ -78,8 +78,8 @@ static void
g_flashmap_print(struct g_flashmap_slice *slice)
{
printf("%08llx-%08llx: %s (%lluKB)\n", slice->sl_start, slice->sl_end,
slice->sl_name, (slice->sl_end - slice->sl_start) / 1024);
printf("%08jx-%08jx: %s (%lluKB)\n", (intmax_t)slice->sl_start, (intmax_t)slice->sl_end,
slice->sl_name, (uintmax_t)(slice->sl_end - slice->sl_start) / 1024);
}
static int