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

Changeset 313775b in mainline


Ignore:
Timestamp:
2011-06-18T15:31:24Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
bd08239
Parents:
136ff96
Message:

Nicer buffer dump in USB keyboard subdriver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbd/kbddev.c

    r136ff96 r313775b  
    4646#include <fibril.h>
    4747#include <fibril_synch.h>
     48
     49#include <ddf/log.h>
    4850
    4951#include <usb/usb.h>
     
    408410        memcpy(kbd_dev->keys_old, kbd_dev->keys, kbd_dev->key_count * 4);
    409411       
    410         usb_log_debug2("New stored keys: ");
    411         for (i = 0; i < kbd_dev->key_count; ++i) {
    412                 usb_log_debug2("%d ", kbd_dev->keys_old[i]);
    413         }
    414         usb_log_debug2("\n");
     412        char key_buffer[512];
     413        ddf_dump_buffer(key_buffer, 512,
     414            kbd_dev->keys_old, 4, kbd_dev->key_count, 0);
     415        usb_log_debug2("Stored keys %s.\n", key_buffer);
    415416}
    416417
Note: See TracChangeset for help on using the changeset viewer.