Package: btrfs-tools
Version: 0.19-12

Hi,

btrfs-tools 0.19-12 FTBFS on alpha and ia64 with this error message:

btrfs-map-logical.c: In function 'debug_read_block':
btrfs-map-logical.c:69: error: format '%Lu' expects type 'long long unsigned 
int', but argument 4 has type 'u64'
btrfs-map-logical.c:69: error: format '%Lu' expects type 'long long unsigned 
int', but argument 5 has type 'u64'

Mdadm had a similar problem recently[1] and the maintainer thought that
an explicit cast might be the right way to fix this, so I attached a
patch doing just that.

Unfortunately qemu doesn't yet support ia64 guests so I can't test that
patch there, however it does build fine on amd64 with the patch applied.

Best Regards

Alexander Kurtz

[1] http://bugs.debian.org/567167
diff -ru btrfs-tools-0.19.old//debian/patches/07-upstream-4.patch btrfs-tools-0.19/debian/patches/07-upstream-4.patch
--- btrfs-tools-0.19.old//debian/patches/07-upstream-4.patch	2010-05-30 16:13:24.000000000 +0200
+++ btrfs-tools-0.19/debian/patches/07-upstream-4.patch	2010-05-30 16:13:47.493671155 +0200
@@ -112,7 +112,7 @@
 +		eb->dev_bytenr = multi->stripes[0].physical;
 +
 +		fprintf(info_file, "mirror %d logical %Lu physical %Lu "
-+			"device %s\n", mirror_num, bytenr, eb->dev_bytenr,
++			"device %s\n", mirror_num, (long long unsigned int) bytenr, (long long unsigned int) eb->dev_bytenr,
 +			device->name);
 +		kfree(multi);
 +

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to