[source] nvram: add help message for nvram magic not found

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 14 09:45:05 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/2b8830933512e6c9e0c866c5f8977f74acfecf89

commit 2b8830933512e6c9e0c866c5f8977f74acfecf89
Author: BangLang Huang <banglang.huang at foxmail.com>
AuthorDate: Fri Feb 24 10:58:09 2017 +0800

    nvram: add help message for nvram magic not found
    
    The program would failed if nvram magic not found
    in specific partition.
    
    Signed-off-by: BangLang Huang <banglang.huang at foxmail.com>
    (cherry picked from commit 69da83d9f12e4e48b546fc3fc3ff555034959211)
---
 package/utils/nvram/src/cli.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/utils/nvram/src/cli.c b/package/utils/nvram/src/cli.c
index 538bdce..224a2b7 100644
--- a/package/utils/nvram/src/cli.c
+++ b/package/utils/nvram/src/cli.c
@@ -240,6 +240,7 @@ int main( int argc, const char *argv[] )
 			"	- Insufficient permissions to open mtd device\n"
 			"	- Insufficient memory to complete operation\n"
 			"	- Memory mapping failed or not supported\n"
+			"	- Nvram magic not found in specific nvram partition\n"
 		);
 
 		stat = 1;



More information about the lede-commits mailing list