[syslinux:master] btrfs: fix typo in definition of BTRFS_ADV_OFFSET

syslinux-bot for H. Peter Anvin hpa at linux.intel.com
Tue May 20 16:57:02 PDT 2014


Commit-ID:  93f89ce6697adffcb3b40d758445ff9adf18b6d4
Gitweb:     http://www.syslinux.org/commit/93f89ce6697adffcb3b40d758445ff9adf18b6d4
Author:     H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Tue, 20 May 2014 16:55:10 -0700
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Tue, 20 May 2014 16:55:10 -0700

btrfs: fix typo in definition of BTRFS_ADV_OFFSET

Correct the macros used in BTRFS_ADV_OFFSET.

Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>

---
 extlinux/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/extlinux/main.c b/extlinux/main.c
index 7271a76..8468729 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -86,7 +86,8 @@
 #define BTRFS_SUBVOL_MAX 256	/* By btrfs specification */
 static char subvol[BTRFS_SUBVOL_MAX];
 
-#define BTRFS_ADV_OFFSET (BOOT_AREA_A_OFFSET + BOOT_AREA_A_SIZE - 2*ADV_SIZE)
+#define BTRFS_ADV_OFFSET (BTRFS_BOOT_AREA_A_OFFSET + BTRFS_BOOT_AREA_A_SIZE \
+			  - 2*ADV_SIZE)
 
 /*
  * Get the size of a block device


More information about the Syslinux-commits mailing list