[yocto] [PATCH] rmc: fix wrong error message

Jianxun Zhang jianxun.zhang at linux.intel.com
Tue Aug 16 16:12:30 PDT 2016


Signed-off-by: Jianxun Zhang <jianxun.zhang at linux.intel.com>
---
 src/rmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rmc.c b/src/rmc.c
index 6cf584e..7f63c59 100644
--- a/src/rmc.c
+++ b/src/rmc.c
@@ -112,7 +112,7 @@ static int read_file(const char *pathname, char **data, size_t* len) {
 
     while (byte < total) {
         if ((tmp = read(fd, buf + byte, total - byte)) < 0) {
-            perror("rmc: failed to alloc read buf");
+            perror("rmc: failed to read file");
             free(buf);
             close(fd);
             return 1;
-- 
2.7.4




More information about the yocto mailing list