summaryrefslogtreecommitdiff
path: root/package/nvram/src/cli.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-07-19 22:20:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-07-19 22:20:07 +0000
commitf813a693fd5e07c60c042a0b11ae8e15144fc960 (patch)
treea1dae749b3ad33263d56c889d557fac19235886b /package/nvram/src/cli.c
parentc811398d00f0b23a9daef2b5f422785233880f34 (diff)
downloadmtk-20170518-f813a693fd5e07c60c042a0b11ae8e15144fc960.zip
mtk-20170518-f813a693fd5e07c60c042a0b11ae8e15144fc960.tar.gz
mtk-20170518-f813a693fd5e07c60c042a0b11ae8e15144fc960.tar.bz2
nvram: handle nvram at varying offsets within the eraseblock (fixes Edimax PS-1208mfg with FLSH at offset 0)
SVN-Revision: 22299
Diffstat (limited to 'package/nvram/src/cli.c')
-rw-r--r--package/nvram/src/cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/nvram/src/cli.c b/package/nvram/src/cli.c
index 44d4b88..66ef904 100644
--- a/package/nvram/src/cli.c
+++ b/package/nvram/src/cli.c
@@ -111,6 +111,7 @@ static int do_info(nvram_handle_t *nvram)
/* Show info */
printf("Magic: 0x%08X\n", hdr->magic);
printf("Length: 0x%08X\n", hdr->len);
+ printf("Offset: 0x%08X\n", nvram->offset);
printf("CRC8: 0x%02X (calculated: 0x%02X)\n",
hdr->crc_ver_init & 0xFF, crc);