Changeset b1c6e58 in mainline


Ignore:
Timestamp:
2011-02-23T22:11:02Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11f1817, a80849c
Parents:
d0dcfa80
Message:

Refactoring of usbinfo application

Location:
uspace/app/usbinfo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/dump.c

    rd0dcfa80 rb1c6e58  
    5353
    5454
    55 static const char *get_indent(size_t level)
     55const char *get_indent(size_t level)
    5656{
    5757        static const char *indents[] = {
  • uspace/app/usbinfo/info.c

    rd0dcfa80 rb1c6e58  
    156156                l18_win_locales_t lang = langs[i];
    157157
    158                 printf("  String for language 0x%04x:\n", (int) lang);
     158                printf("%sStrings for language 0x%04x:\n", get_indent(0),
     159                    (int) lang);
    159160
    160161                /*
     
    177178                                continue;
    178179                        }
    179                         printf("    String #%zu: \"%s\"\n", idx, string);
     180                        printf("%sString #%zu: \"%s\"\n", get_indent(1),
     181                            idx, string);
    180182                        free(string);
    181183                        failed_count = 0; /* Reset failed counter. */
  • uspace/app/usbinfo/usbinfo.h

    rd0dcfa80 rb1c6e58  
    4545
    4646void dump_buffer(const char *, size_t, const uint8_t *, size_t);
     47const char *get_indent(size_t);
    4748void dump_match_ids(match_id_list_t *matches);
    4849void dump_usb_descriptor(uint8_t *, size_t);
Note: See TracChangeset for help on using the changeset viewer.