mirror of
https://xff.cz/git/pinephone-keyboard/
synced 2024-11-09 22:15:42 +01:00
Add missing argument to error reporting functions
This commit is contained in:
parent
7830c7986f
commit
457e5658d9
1 changed files with 2 additions and 2 deletions
4
common.c
4
common.c
|
@ -229,7 +229,7 @@ static int pogo_i2c_open(void)
|
||||||
snprintf(path, sizeof path, "/dev/i2c-%d", i);
|
snprintf(path, sizeof path, "/dev/i2c-%d", i);
|
||||||
|
|
||||||
int fd = open(path, O_RDWR);
|
int fd = open(path, O_RDWR);
|
||||||
syscall_error(fd < 0, "open(%s) failed");
|
syscall_error(fd < 0, "open(%s) failed", path);
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
@ -331,7 +331,7 @@ static int gpiochip_open(const char* match)
|
||||||
snprintf(path, sizeof path, "/dev/gpiochip%d", i);
|
snprintf(path, sizeof path, "/dev/gpiochip%d", i);
|
||||||
|
|
||||||
int fd = open(path, O_RDWR);
|
int fd = open(path, O_RDWR);
|
||||||
syscall_error(fd < 0, "open(%s) failed");
|
syscall_error(fd < 0, "open(%s) failed", path);
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue