drivers: eeprom: Fix splitting format string
Fix splitting format string to arguments. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
1ec44b6160
commit
4d2914c5c2
1 changed files with 2 additions and 2 deletions
|
@ -219,14 +219,14 @@ static int eeprom_mock_init(const struct device *dev)
|
|||
|
||||
eeprom_fd = open(eeprom_file_path, O_RDWR | O_CREAT, (mode_t)0600);
|
||||
if (eeprom_fd == -1) {
|
||||
posix_print_warning("Failed to open eeprom device file ",
|
||||
posix_print_warning("Failed to open eeprom device file "
|
||||
"%s: %s\n",
|
||||
eeprom_file_path, strerror(errno));
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
if (ftruncate(eeprom_fd, DT_INST_PROP(0, size)) == -1) {
|
||||
posix_print_warning("Failed to resize eeprom device file ",
|
||||
posix_print_warning("Failed to resize eeprom device file "
|
||||
"%s: %s\n",
|
||||
eeprom_file_path, strerror(errno));
|
||||
return -EIO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue