hrev47826 adds 1 changeset to branch 'master' old head: af7978ef01b8158d890f0b4415a34c367afb36af new head: fccfeff29edd57bb2b8aa985d47458655322f75d overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=fccfeff+%5Eaf7978e ---------------------------------------------------------------------------- fccfeff: listarea: fixes warnings and output on x86_64. * columns aren't correctly aligned anymore atm. [ Jérôme Duval <jerome.duval@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev47826 Commit: fccfeff29edd57bb2b8aa985d47458655322f75d URL: http://cgit.haiku-os.org/haiku/commit/?id=fccfeff Author: Jérôme Duval <jerome.duval@xxxxxxxxx> Date: Sat Sep 6 21:56:15 2014 UTC ---------------------------------------------------------------------------- 1 file changed, 11 insertions(+), 8 deletions(-) src/bin/listarea.c | 19 +++++++++++-------- ---------------------------------------------------------------------------- diff --git a/src/bin/listarea.c b/src/bin/listarea.c index f381bb1..0879f1a 100644 --- a/src/bin/listarea.c +++ b/src/bin/listarea.c @@ -34,7 +34,8 @@ show_memory_totals(void) used = info.used_pages * 4; } - printf("memory: total: %4ldKB, used: %4ldKB, left: %4ldKB\n", max, used, max - used); + printf("memory: total: %4" B_PRId32 "KB, used: %4" B_PRId32 "KB, left: %4" + B_PRId32 "KB\n", max, used, max - used); } @@ -46,21 +47,23 @@ list_areas_for_id(team_id id) area_info areaInfo; if (id != 1 && get_team_info(id, &teamInfo) == B_BAD_TEAM_ID) { - printf("\nteam %ld unknown\n", id); + printf("\nteam %" B_PRId32 " unknown\n", id); return; } else if (id == 1) strcpy(teamInfo.args, "KERNEL SPACE"); - printf("\n%s (team %ld)\n", teamInfo.args, id); - printf(" ID name address size alloc. #-cow #-in #-out\n"); - printf("------------------------------------------------------------------------------------\n"); + printf("\n%s (team %" B_PRId32 ")\n", teamInfo.args, id); + printf(" ID name address size alloc." + " #-cow #-in #-out\n"); + printf("------------------------------------------------------------------" + "------------------\n"); while (get_next_area_info(id, &cookie, &areaInfo) == B_OK) { - printf("%5ld %32s %08lx %8lx %8lx %5ld %5ld %5ld\n", + printf("%5" B_PRId32 " %32s %p %8" B_PRIxSIZE " %8" B_PRIx32 " %5" + B_PRId32 " %5" B_PRId32 " %5" B_PRId32 "\n", areaInfo.area, areaInfo.name, -// (addr_t)areaInfo.address, - (uint32)areaInfo.address, + areaInfo.address, areaInfo.size, areaInfo.ram_size, areaInfo.copy_count,