Fix printf format specifier to match length of data type.

Here, LFS uses an int for return value, which is 16-bit.
The VERIFY_MESS expects a 32-bit value, so cast here at
the boundary between the two sets of files.
This commit is contained in:
Henry Gabryjelski 2019-10-05 18:02:26 -07:00
parent f0f6b1041a
commit 4904ee5a9d

View file

@ -83,7 +83,7 @@ class Adafruit_LittleFS
#define PRINT_LFS_ERR(_err)
#else
#define VERIFY_LFS(...) _GET_3RD_ARG(__VA_ARGS__, VERIFY_ERR_2ARGS, VERIFY_ERR_1ARGS)(__VA_ARGS__, dbg_strerr_lfs)
#define PRINT_LFS_ERR(_err) VERIFY_MESS(_err, dbg_strerr_lfs)
#define PRINT_LFS_ERR(_err) VERIFY_MESS((long int)_err, dbg_strerr_lfs) // LFS_ERR are of type int, VERIFY_MESS expects long_int
const char* dbg_strerr_lfs (int32_t err);
#endif