Skip to content

Commit f0f6b10

Browse files
committed
Fix printf format specifier to match length of data type.
1 parent f3cc656 commit f0f6b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const char* dbg_strerr_lfs (int32_t err)
179179

180180
default:
181181
static char errcode[10];
182-
sprintf(errcode, "%d", err);
182+
sprintf(errcode, "%ld", err);
183183
return errcode;
184184
}
185185

0 commit comments

Comments
 (0)