From 2e285f4dc320c587df0afce2a20cbbe6cee417d7 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 5 Mar 2015 10:54:10 -1000 Subject: Fixed bug in hardfault_get_desc not retering -ENOENT --- src/systemcmds/hardfault_log/hardfault_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemcmds/hardfault_log/hardfault_log.c b/src/systemcmds/hardfault_log/hardfault_log.c index d0d67b4fc..f56e47029 100644 --- a/src/systemcmds/hardfault_log/hardfault_log.c +++ b/src/systemcmds/hardfault_log/hardfault_log.c @@ -196,7 +196,7 @@ static void identify(char *caller) ****************************************************************************/ static int hardfault_get_desc(char *caller, struct bbsramd_s *desc, bool silent) { - int ret = ENOENT; + int ret = -ENOENT; int fd = open(HARDFAULT_PATH, O_RDONLY); if (fd < 0 ) { if (!silent) { -- cgit v1.2.3