[OpenWrt-Devel] [PATCH v1 5/7] mtd: Add debug showing header magic in use

Will Sheppard sheppard.will at gmail.com
Mon Feb 9 11:29:22 EST 2015


Signed-off-by: Will Sheppard <wsheppard at embedded-bits.co.uk>
---
 package/system/mtd/src/trx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/system/mtd/src/trx.c b/package/system/mtd/src/trx.c
index 1722cf2..776cb82 100644
--- a/package/system/mtd/src/trx.c
+++ b/package/system/mtd/src/trx.c
@@ -160,7 +160,7 @@ mtd_fixtrx(const char *mtd, size_t offset)
 	size_t block_offset;
 
 	if (quiet < 2)
-		fprintf(stderr, "Trying to fix trx header in %s at 0x%x...\n", mtd, offset);
+		fprintf(stderr, "Trying to fix trx header in %s at 0x%x... Magic 0x%08X\n", mtd, offset, TRX_MAGIC);
 
 	fd = mtd_check_open(mtd);
 	if(fd < 0) {
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list