Changeset b1c6e58 in mainline
- Timestamp:
- 2011-02-23T22:11:02Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 11f1817, a80849c
- Parents:
- d0dcfa80
- Location:
- uspace/app/usbinfo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/dump.c
rd0dcfa80 rb1c6e58 53 53 54 54 55 staticconst char *get_indent(size_t level)55 const char *get_indent(size_t level) 56 56 { 57 57 static const char *indents[] = { -
uspace/app/usbinfo/info.c
rd0dcfa80 rb1c6e58 156 156 l18_win_locales_t lang = langs[i]; 157 157 158 printf(" String for language 0x%04x:\n", (int) lang); 158 printf("%sStrings for language 0x%04x:\n", get_indent(0), 159 (int) lang); 159 160 160 161 /* … … 177 178 continue; 178 179 } 179 printf(" String #%zu: \"%s\"\n", idx, string); 180 printf("%sString #%zu: \"%s\"\n", get_indent(1), 181 idx, string); 180 182 free(string); 181 183 failed_count = 0; /* Reset failed counter. */ -
uspace/app/usbinfo/usbinfo.h
rd0dcfa80 rb1c6e58 45 45 46 46 void dump_buffer(const char *, size_t, const uint8_t *, size_t); 47 const char *get_indent(size_t); 47 48 void dump_match_ids(match_id_list_t *matches); 48 49 void dump_usb_descriptor(uint8_t *, size_t);
Note:
See TracChangeset
for help on using the changeset viewer.