Add missing argument to error reporting functions

This commit is contained in:
Ondrej Jirman 2022-01-12 13:37:12 +01:00
parent 7830c7986f
commit 457e5658d9

View File

@ -229,7 +229,7 @@ static int pogo_i2c_open(void)
snprintf(path, sizeof path, "/dev/i2c-%d", i);
int fd = open(path, O_RDWR);
syscall_error(fd < 0, "open(%s) failed");
syscall_error(fd < 0, "open(%s) failed", path);
return fd;
}
@ -331,7 +331,7 @@ static int gpiochip_open(const char* match)
snprintf(path, sizeof path, "/dev/gpiochip%d", i);
int fd = open(path, O_RDWR);
syscall_error(fd < 0, "open(%s) failed");
syscall_error(fd < 0, "open(%s) failed", path);
return fd;
}