Changeset 4a764d1 in mainline
- Timestamp:
- 2019-06-01T12:45:30Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c878693
- Parents:
- 0feb39b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/ls/ls.c
r0feb39b r4a764d1 112 112 errno_t rc = cap_format(&cap, &rptr); 113 113 if (rc == EOK) { 114 char bytes[9], suffix[3]; 115 sscanf(rptr, "%s %s", bytes, suffix); 114 char *sep = str_rchr(rptr, ' '); 115 if (sep == NULL) { 116 free(rptr); 117 return ENOENT; 118 } 119 120 *sep = '\0'; 121 122 printf("%-40s\t%*s %2s\n", de->name, width - 3, rptr, sep + 1); 116 123 free(rptr); 117 118 printf("%-40s\t%*s %2s\n", de->name, width - 3, bytes, suffix);119 124 } else 120 125 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.