diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-15 03:49:45 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-15 03:49:45 +0000 |
commit | 9b8d81c377e12258553fd85a7fbac38b01819a8a (patch) | |
tree | 2c56a683c8468906d16752bfee19b56a5d05f842 | |
parent | 795f08b9542e9a7e7923b077a740994219d72bfd (diff) | |
download | anaconda-9b8d81c377e12258553fd85a7fbac38b01819a8a.tar.gz anaconda-9b8d81c377e12258553fd85a7fbac38b01819a8a.tar.xz anaconda-9b8d81c377e12258553fd85a7fbac38b01819a8a.zip |
print ID in hex, pad left with 0
-rw-r--r-- | ddcprobe/ddcprobe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ddcprobe/ddcprobe.c b/ddcprobe/ddcprobe.c index eaedcc54d..01467275b 100644 --- a/ddcprobe/ddcprobe.c +++ b/ddcprobe/ddcprobe.c @@ -105,8 +105,8 @@ int main(int argc, char **argv) manufacturer[2] = edid_info->manufacturer_name.char3 + 'A' - 1; manufacturer[3] = '\0'; printf("Manufacturer: %s\n", manufacturer); - printf("ID: %d\n", edid_info->product_code); - printf("EISA ID: %s%d\n", manufacturer, edid_info->product_code); + printf("ID: %04x\n", edid_info->product_code); + printf("EISA ID: %s%04x\n", manufacturer, edid_info->product_code); if(edid_info->serial_number != 0xffffffff) { if(strcmp(manufacturer, "MAG") == 0) { |