* grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to

print pointer.
	* grub-core/bus/usb/uhci.c: Remove empty define.
	(grub_uhci_check_transfer): Add missing cast.
	* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
	print pointer.
	* grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
	PRIuGRUB_SIZE.
	* include/grub/types.h (PRIuGRUB_SIZE): New definition.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-19 22:05:48 +02:00
parent d6d94820b5
commit 9af6dac30d
6 changed files with 22 additions and 6 deletions

View file

@ -101,8 +101,10 @@ typedef grub_int64_t grub_ssize_t;
# if GRUB_CPU_SIZEOF_LONG == 8
# define PRIxGRUB_SIZE "lx"
# define PRIuGRUB_SIZE "lu"
# else
# define PRIxGRUB_SIZE "llx"
# define PRIuGRUB_SIZE "llu"
# endif
#else
typedef grub_uint32_t grub_addr_t;
@ -110,6 +112,7 @@ typedef grub_uint32_t grub_size_t;
typedef grub_int32_t grub_ssize_t;
# define PRIxGRUB_SIZE "x"
# define PRIuGRUB_SIZE "u"
#endif
#if GRUB_CPU_SIZEOF_LONG == 8