Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4125b7d in mainline for uspace/drv/vhc/conndev.c


Ignore:
Timestamp:
2011-04-18T20:06:55Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
84a04dd, bbdf09e
Parents:
5ab4a48
Message:

usb_log_printf() checks for printf correctness

It is surprising how many printf warnings simple check could
produce ;-).

Next time, it won't compile. Bad, huh?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/conndev.c

    r5ab4a48 r4125b7d  
    9999                int rc = get_device_name(callback, devname, DEVICE_NAME_MAXLENGTH);
    100100
    101                 usb_log_info("New virtual device `%s' (id = %x).\n",
     101                usb_log_info("New virtual device `%s' (id = %" PRIxn ").\n",
    102102                    rc == EOK ? devname : "<unknown>", dev->id);
    103103
     
    122122        }
    123123
    124         usb_log_info("Virtual device disconnected (id = %x).\n", dev->id);
     124        usb_log_info("Virtual device disconnected (id = %" PRIxn ").\n",
     125            dev->id);
    125126        virtdev_destroy_device(dev);
    126127}
Note: See TracChangeset for help on using the changeset viewer.