base: show size as %zu instead %zd

For big numbers otherwise negative sizes for memory chunks are displayed.

Issue #1011
This commit is contained in:
Alexander Boettcher
2013-12-20 10:33:56 +01:00
committed by Norman Feske
parent b8beba5bf3
commit b893968232
12 changed files with 30 additions and 30 deletions

View File

@@ -119,7 +119,7 @@ namespace Init {
ram_quota = avail_slack_ram_quota();
if (config_verbose)
Genode::printf("Warning: Specified quota exceeds available quota.\n"
" Proceeding with a quota of %zd bytes.\n",
" Proceeding with a quota of %zu bytes.\n",
(Genode::size_t)ram_quota);
}
return ram_quota;
@@ -531,7 +531,7 @@ namespace Init {
if (config_verbose) {
Genode::printf("child \"%s\"\n", _name.unique);
Genode::printf(" RAM quota: %zd\n", _resources.ram_quota);
Genode::printf(" RAM quota: %zu\n", _resources.ram_quota);
Genode::printf(" ELF binary: %s\n", _name.file);
Genode::printf(" priority: %ld\n", _resources.priority);
}