Staging: xgifb: use %lx instead of %x in printk format
authorBill Pemberton <wfp5p@virginia.edu>
Thu, 17 Jun 2010 17:10:33 +0000 (13:10 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jun 2010 21:20:36 +0000 (14:20 -0700)
This fixes compiler warning  format '%x' expects type 'unsigned int',
but argument 2 has type 'long unsigned int'

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/XGI_main_26.c

index 68bc1d839ad6d8297ec2b9cdf5ec1f9296d68203..4d8dadd17d938a35360e98e87e8f236942918ae3 100644 (file)
@@ -3510,7 +3510,8 @@ int __devinit xgifb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
                XGIfb_registered = 1;
 
-               printk(KERN_INFO "XGIfb: Installed XGIFB_GET_INFO ioctl (%x)\n", XGIFB_GET_INFO);
+               printk(KERN_INFO "XGIfb: Installed XGIFB_GET_INFO ioctl (%lx)\n",
+                      XGIFB_GET_INFO);
 
 /*             printk(KERN_INFO "XGIfb: 2D acceleration is %s, scrolling mode %s\n",
                     XGIfb_accel ? "enabled" : "disabled",