]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/print-utils.c
add fat command mv
[z180-stamp.git] / avr / print-utils.c
index 69f45536924241e82717e25c2f95df079e351725..ea3b5cf333ea8eca483cb7137cec8268a1f92e35 100644 (file)
@@ -6,8 +6,6 @@
 
 #include "common.h"
 #include <stdint.h>
-#include <stdio.h>
-#include <ctype.h>
 #include "con-utils.h"
 #include "print-utils.h"
 
@@ -55,8 +53,9 @@ ERRNUM dump_mem(uint32_t address, uint32_t offset, uint32_t len,
        while (len) {
                if (len < 16)
                        llen = len;
-               if (readfkt(buf, address, llen - pre) != 0)
-                       return -EBUSTO;
+               ERRNUM err = readfkt(buf, address, llen - pre);
+               if (err != ESUCCESS)
+                       return err;
 
                if (title)
                        print_blanks(4);