X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fvolume_id%2Flib%2Fbtrfs.c;h=75a9b0a9a9a99ce617178656c830e7c25932caeb;hb=d56f94d1680dfaac9f0c40541548df32bf65b6ea;hp=aae2fa616e82c93e8ba9e3c0d551b1825ae10431;hpb=99370c21521bca6e747f6be209e5c28f89de9838;p=elogind.git diff --git a/extras/volume_id/lib/btrfs.c b/extras/volume_id/lib/btrfs.c index aae2fa616..75a9b0a9a 100644 --- a/extras/volume_id/lib/btrfs.c +++ b/extras/volume_id/lib/btrfs.c @@ -75,14 +75,13 @@ int volume_id_probe_btrfs(struct volume_id *id, uint64_t off, uint64_t size) const uint8_t *buf; struct btrfs_super_block *bfs; - 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); buf = volume_id_get_buffer(id, off + 0x4000, 0x200); if (buf == NULL) return -1; bfs = (struct btrfs_super_block *)buf; - if (memcmp(bfs->magic, "_B9RfS_M", 8) != 0) + if (memcmp(bfs->magic, "_BBRfS_M", 8) != 0) return -1; volume_id_set_uuid(id, bfs->fsid, 0, UUID_DCE); volume_id_set_label_raw(id, bfs->label, 256);