summaryrefslogtreecommitdiffstats
path: root/clib/src/list.c
diff options
context:
space:
mode:
authorPatrick Williams <williamspatrick@gmail.com>2015-04-22 15:11:25 -0500
committerPatrick Williams <williamspatrick@gmail.com>2015-04-22 15:11:25 -0500
commit2e790b8409071ca15767d822dabfa8e60f12c6e2 (patch)
tree14a358904909e8fe0f631d414333c26de81e5042 /clib/src/list.c
parentaa8354ef7ee6606fe32453e3eedce9af8038230a (diff)
parent76ce4aadee1a7a890001affed54a0fb1110b1793 (diff)
downloadffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.tar.gz
ffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.zip
Merge pull request #4 from anoo1/master
Support to compile in 64bit for Ubuntu Little Endian
Diffstat (limited to 'clib/src/list.c')
-rw-r--r--clib/src/list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/clib/src/list.c b/clib/src/list.c
index 03f6a20..5c33a48 100644
--- a/clib/src/list.c
+++ b/clib/src/list.c
@@ -40,14 +40,14 @@ void list_dump(list_t * self, FILE * out)
fprintf(out,
"===================================================================\n");
- fprintf(out, "head: %8x node: %8x\n", (uint32_t) self,
- (uint32_t) & self->node);
+ fprintf(out, "head: %8lx node: %8lx\n", (ulong) self,
+ (ulong) & self->node);
list_node_t *node = &self->node;
do {
- fprintf(out, " node: %8x - prev: %8x - next: %8x\n",
- (uint32_t) node, (uint32_t) node->prev,
- (uint32_t) node->next);
+ fprintf(out, " node: %8lx - prev: %8lx - next: %8lx\n",
+ (ulong) node, (ulong) node->prev,
+ (ulong) node->next);
node = node->next;
} while (node != &self->node);
OpenPOWER on IntegriCloud