Changeset 3bacee1 in mainline for uspace/app/usbinfo/dump.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/dump.c
r76d0981d r3bacee1 64 64 INDENT INDENT INDENT INDENT INDENT INDENT, 65 65 }; 66 static size_t indents_count = sizeof(indents) /sizeof(indents[0]);66 static size_t indents_count = sizeof(indents) / sizeof(indents[0]); 67 67 if (level >= indents_count) { 68 68 return indents[indents_count - 1]; … … 84 84 for (i = 0; i < length; i++) { 85 85 printf("0x%02X", buffer[i]); 86 if (((i > 0) && (((i +1) % BYTES_PER_LINE) == 0))87 ||(i + 1 == length)) {86 if (((i > 0) && (((i + 1) % BYTES_PER_LINE) == 0)) || 87 (i + 1 == length)) { 88 88 printf("\n"); 89 89 if (i + 1 < length) {
Note:
See TracChangeset
for help on using the changeset viewer.