mirror of
https://xff.cz/git/pinephone-keyboard
synced 2024-12-22 04:48:49 -05:00
Add missing argument to error reporting functions
This commit is contained in:
parent
7830c7986f
commit
457e5658d9
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 New Issue
Block a user