staging: kpc2000: Use '%llx' for printing 'long long int' type
authorFabio Estevam <festevam@gmail.com>
Wed, 5 Jun 2019 21:54:21 +0000 (18:54 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:03:34 +0000 (15:03 +0200)
In order to print a 'long long int' type the 'llx' specifier needs to be
used.

Change it accordingly in order to fix the following build warning:

drivers/staging/kpc2000/kpc2000/core.c:245:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=]

Reported-by: Build bot for Mark Brown <broonie@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000/core.c
drivers/staging/kpc2000/kpc2000/pcie.h

index cd3876f1ce17678090e76c11d8bbb7953ef51e1b..93e381198b4592157799d39f559b53af661874a9 100644 (file)
@@ -241,7 +241,7 @@ static int  read_system_regs(struct kp2000_device *pcard)
        read_val = readq(pcard->sysinfo_regs_base + REG_MAGIC_NUMBER);
        if (read_val != KP2000_MAGIC_VALUE) {
                dev_err(&pcard->pdev->dev,
-                       "Invalid magic!  Got: 0x%016llx  Want: 0x%016lx\n",
+                       "Invalid magic!  Got: 0x%016llx  Want: 0x%016llx\n",
                        read_val, KP2000_MAGIC_VALUE);
                return -EILSEQ;
        }
index d3cdb515a75c1b75b9207939e54683a60313d758..cb815c30faa41f84c10ef2e6582cf7716b3be62c 100644 (file)
@@ -39,7 +39,7 @@
 #define REG_INTERRUPT_ACTIVE           (9 * REG_WIDTH)
 #define REG_PCIE_ERROR_COUNT           (10 * REG_WIDTH)
 
-#define KP2000_MAGIC_VALUE             0x196C61482231894D
+#define KP2000_MAGIC_VALUE             0x196C61482231894DULL
 
 #define PCI_VENDOR_ID_DAKTRONICS       0x1c33
 #define PCI_DEVICE_ID_DAKTRONICS       0x6021