Changeset 9af1c61 in mainline for uspace/app/bdsh
- Timestamp:
- 2017-12-05T14:52:22Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- addbce4
- Parents:
- 82d515e9
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-05 14:50:38)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-05 14:52:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
r82d515e9 r9af1c61 31 31 #include <stdlib.h> 32 32 #include <stdint.h> 33 #include <str_error.h> 33 34 #include <dirent.h> 34 35 #include <macros.h> … … 191 192 rc = vfs_write(fd, &pos, buffer, to_write, &nwritten); 192 193 if (rc != EOK) { 193 printf("%s: Error writing file (% d).\n", cmdname, errno);194 printf("%s: Error writing file (%s).\n", cmdname, str_error(errno)); 194 195 vfs_put(fd); 195 196 free(buffer); … … 206 207 return CMD_SUCCESS; 207 208 error: 208 printf("%s: Error writing file (% d).\n", cmdname, errno);209 printf("%s: Error writing file (%s).\n", cmdname, str_error(errno)); 209 210 return CMD_FAILURE; 210 211 }
Note:
See TracChangeset
for help on using the changeset viewer.