|
@@ -79,21 +79,16 @@ static void debug_rw(const bool write, int &pos, const uint8_t *value, const siz
|
79
|
79
|
PGM_P const rw_str = write ? PSTR("write") : PSTR("read");
|
80
|
80
|
SERIAL_CHAR(' ');
|
81
|
81
|
serialprintPGM(rw_str);
|
82
|
|
- SERIAL_ECHOPAIR("_data(", pos);
|
83
|
|
- SERIAL_ECHOPAIR(",", (int)value);
|
84
|
|
- SERIAL_ECHOPAIR(",", (int)size);
|
85
|
|
- SERIAL_ECHOLNPGM(", ...)");
|
|
82
|
+ SERIAL_ECHOLNPAIR("_data(", pos, ",", int(value), ",", int(size), ", ...)");
|
86
|
83
|
if (total) {
|
87
|
84
|
SERIAL_ECHOPGM(" f_");
|
88
|
85
|
serialprintPGM(rw_str);
|
89
|
|
- SERIAL_ECHOPAIR("()=", (int)s);
|
90
|
|
- SERIAL_ECHOPAIR("\n size=", size);
|
91
|
|
- SERIAL_ECHOPGM("\n bytes_");
|
|
86
|
+ SERIAL_ECHOPAIR("()=", int(s), "\n size=", int(size), "\n bytes_");
|
92
|
87
|
serialprintPGM(write ? PSTR("written=") : PSTR("read="));
|
93
|
88
|
SERIAL_ECHOLN(total);
|
94
|
89
|
}
|
95
|
90
|
else
|
96
|
|
- SERIAL_ECHOLNPAIR(" f_lseek()=", (int)s);
|
|
91
|
+ SERIAL_ECHOLNPAIR(" f_lseek()=", int(s));
|
97
|
92
|
}
|
98
|
93
|
|
99
|
94
|
// File function return codes for type FRESULT. This goes away soon, but
|