diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 18:24:04 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 18:24:04 +0200 |
commit | 0565a00a4cfdabd325bf2e117620d5f15dd46cda (patch) | |
tree | 18501a09ee2253777b85ff59451419b83aca96e4 /extras/volume_id/lib/ddf_raid.c | |
parent | 99370c21521bca6e747f6be209e5c28f89de9838 (diff) |
volume_id: use PRIu64i, PRIx64 macros
Diffstat (limited to 'extras/volume_id/lib/ddf_raid.c')
-rw-r--r-- | extras/volume_id/lib/ddf_raid.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/extras/volume_id/lib/ddf_raid.c b/extras/volume_id/lib/ddf_raid.c index 53d309b8c0..58bdae94a7 100644 --- a/extras/volume_id/lib/ddf_raid.c +++ b/extras/volume_id/lib/ddf_raid.c @@ -50,8 +50,7 @@ int volume_id_probe_ddf_raid(struct volume_id *id, uint64_t off, uint64_t size) const uint8_t *buf; struct ddf_header *ddf; - info("probing at offset 0x%llx, size 0x%llx\n", - (unsigned long long)off, (unsigned long long)size); + info("probing at offset 0x%" PRIx64 ", size 0x%" PRIx64 "\n", off, size); if (size < 0x30000) return -1; @@ -62,11 +61,11 @@ int volume_id_probe_ddf_raid(struct volume_id *id, uint64_t off, uint64_t size) return -1; ddf = (struct ddf_header *) buf; if (memcmp(ddf->signature, "\x11\xde\x11\xde", 4) == 0) { - info("header (little endian) found at %llu\n", (unsigned long long)(off + ddf_off)); + info("header (little endian) found at %" PRIu64 "\n", (off + ddf_off)); goto found; } if (memcmp(ddf->signature, "\xde\x11\xde\x11", 4) == 0) { - info("header (big endian) found at %llu\n", (unsigned long long)(off + ddf_off)); + info("header (big endian) found at %" PRIu64 "\n", (off + ddf_off)); goto found; } @@ -77,11 +76,11 @@ int volume_id_probe_ddf_raid(struct volume_id *id, uint64_t off, uint64_t size) return -1; ddf = (struct ddf_header *) buf; if (memcmp(ddf->signature, "\x11\xde\x11\xde", 4) == 0) { - info("header adaptec (little endian) found at %llu\n", (unsigned long long)(off + ddf_off)); + info("header adaptec (little endian) found at %" PRIu64 "\n", (off + ddf_off)); goto found; } if (memcmp(ddf->signature, "\xde\x11\xde\x11", 4) == 0) { - info("header adaptec (big endian) found at %llu\n", (unsigned long long)(off + ddf_off)); + info("header adaptec (big endian) found at %" PRIu64 "\n", (off + ddf_off)); goto found; } |