bin/listres: Fix -Wformat=
Change-Id: Ida7d957c9a1f73dc87b7e0ce488c1c30cb5a95cc Reviewed-on: https://review.haiku-os.org/c/1511 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
b8a9c31265
commit
e98c206263
+3
-3
@@ -69,7 +69,7 @@ get_type(type_code type)
|
|||||||
if (missed < 2)
|
if (missed < 2)
|
||||||
sprintf(buffer, "'%c%c%c%c'", value[0], value[1], value[2], value[3]);
|
sprintf(buffer, "'%c%c%c%c'", value[0], value[1], value[2], value[3]);
|
||||||
else
|
else
|
||||||
sprintf(buffer, "0x%08lx", type);
|
sprintf(buffer, "0x%08" B_PRIx32, type);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -120,13 +120,13 @@ main(int argc, char *argv[])
|
|||||||
size_t size;
|
size_t size;
|
||||||
int32 id;
|
int32 id;
|
||||||
while (resources.GetResourceInfo(index++, &type, &id, &name, &size)) {
|
while (resources.GetResourceInfo(index++, &type, &id, &name, &size)) {
|
||||||
printf("%11s %6ld %9ld \"%s\"\n",
|
printf("%11s %6" B_PRId32 " %9ld \"%s\"\n",
|
||||||
get_type(type), id, size, name);
|
get_type(type), id, size, name);
|
||||||
|
|
||||||
total += size;
|
total += size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\n%Ld bytes total in resources.\n", total);
|
printf("\n%" B_PRIdOFF " bytes total in resources.\n", total);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user