Changeset 93a3348 in mainline for kernel/generic/src/adt/btree.c


Ignore:
Timestamp:
2008-06-03T14:48:07Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8ed4014
Parents:
2b8b0ca
Message:

proper printf formatting, remove non-standard 'z' modifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/adt/btree.c

    r2b8b0ca r93a3348  
    125125        if (!lnode) {
    126126                if (btree_search(t, key, &lnode)) {
    127                         panic("B-tree %p already contains key %d\n", t, key);
     127                        panic("B-tree %p already contains key %" PRIu64 "\n", t, key);
    128128                }
    129129        }
     
    225225        if (!lnode) {
    226226                if (!btree_search(t, key, &lnode)) {
    227                         panic("B-tree %p does not contain key %d\n", t, key);
     227                        panic("B-tree %p does not contain key %" PRIu64 "\n", t, key);
    228228                }
    229229        }
     
    525525                }
    526526        }
    527         panic("node %p does not contain key %d\n", node, key);
     527        panic("node %p does not contain key %" PRIu64 "\n", node, key);
    528528}
    529529
     
    552552                }
    553553        }
    554         panic("node %p does not contain key %d\n", node, key);
     554        panic("node %p does not contain key %" PRIu64 "\n", node, key);
    555555}
    556556
     
    971971                printf("(");
    972972                for (i = 0; i < node->keys; i++) {
    973                         printf("%llu%s", node->key[i], i < node->keys - 1 ? "," : "");
     973                        printf("%" PRIu64 "%s", node->key[i], i < node->keys - 1 ? "," : "");
    974974                        if (node->depth && node->subtree[i]) {
    975975                                list_append(&node->subtree[i]->bfs_link, &head);
     
    993993                printf("(");
    994994                for (i = 0; i < node->keys; i++)
    995                         printf("%llu%s", node->key[i], i < node->keys - 1 ? "," : "");
     995                        printf("%" PRIu64 "%s", node->key[i], i < node->keys - 1 ? "," : "");
    996996                printf(")");
    997997        }
Note: See TracChangeset for help on using the changeset viewer.