Skip to content

Commit eef040d

Browse files
authored
Don't use %s in a log when it's an int
1 parent 279baa7 commit eef040d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/portduino/linux/gpio/LinuxGPIOPin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ gpiod_line *LinuxGPIOPin::getLine(const char *chipLabel, const int linuxPinNum)
222222
struct dirent **entries;
223223
int num_chips = scandir("/dev/", &entries, chip_dir_filter, alphasort);
224224
assert(num_chips > 0); // FIXME, throw exception
225-
log(SysGPIO, LogDebug, "getLine(%s, %s)", chipLabel, linuxPinNum);
225+
log(SysGPIO, LogDebug, "getLine(%s, %d)", chipLabel, linuxPinNum);
226226
for (int i = 0; i < num_chips; i++) {
227227
chip = chip_open_by_name(entries[i]->d_name);
228228
if (!chip) {

0 commit comments

Comments
 (0)