From 9b0c212a1648dfeb875070b6eac21de6f3a28f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 31 Oct 2005 14:27:28 +0000 Subject: [PATCH] Fixed warning, minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14596 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/listimage.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/src/bin/listimage.c b/src/bin/listimage.c index 378b923b39..3a4928c007 100644 --- a/src/bin/listimage.c +++ b/src/bin/listimage.c @@ -1,16 +1,13 @@ -// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -// -// Copyright (c) 2001-2004, Haiku -// -// This software is part of the Haiku distribution and is covered -// by the Haiku license. -// -// -// File: listimage.c -// Author: Daniel Reinhold (danielre@users.sf.net) -// Description: lists image info for all currently running teams -// -// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ +/* + * Copyright (c) 2001-2005, Haiku. + * + * This software is part of the Haiku distribution and is covered + * by the MIT license. + * + * Author: Daniel Reinhold (danielre@users.sf.net) + */ + +/** Description: lists image info for all currently running teams */ #include @@ -42,11 +39,11 @@ list_images_for_team_by_id(team_id id) printf("------------------------------------------------------------------------------------------------------------\n"); while ((status = get_next_image_info(id, &cookie, &imageInfo)) == B_OK) { - printf("%5ld %64s 0x%08lx 0x%08lx %4ld %10lu\n", + printf("%5ld %64s %p %p %4ld %10lu\n", imageInfo.id, imageInfo.name, - (void *)imageInfo.text, - (void *)imageInfo.data, + imageInfo.text, + imageInfo.data, imageInfo.sequence, imageInfo.init_order); }