chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
volume_id: update btrfs magic
[elogind.git]
/
extras
/
volume_id
/
lib
/
btrfs.c
diff --git
a/extras/volume_id/lib/btrfs.c
b/extras/volume_id/lib/btrfs.c
index aae2fa616e82c93e8ba9e3c0d551b1825ae10431..315abddae6c24f2f85f5e9ea8ee537f649410cad 100644
(file)
--- 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;
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;
buf = volume_id_get_buffer(id, off + 0x4000, 0x200);
if (buf == NULL)
return -1;
bfs = (struct btrfs_super_block *)buf;
- if (memcmp(bfs->magic, "_B
9
RfS_M", 8) != 0)
+ if (memcmp(bfs->magic, "_B
F
RfS_M", 8) != 0)
return -1;
volume_id_set_uuid(id, bfs->fsid, 0, UUID_DCE);
volume_id_set_label_raw(id, bfs->label, 256);
return -1;
volume_id_set_uuid(id, bfs->fsid, 0, UUID_DCE);
volume_id_set_label_raw(id, bfs->label, 256);