cns3xxx: correct size specifier in watchdog init print
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 8 Aug 2018 10:40:29 +0000 (12:40 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 8 Aug 2018 14:05:16 +0000 (16:05 +0200)
fix compiler warnings

Fixes: 84acff286566 ("cns3xxx: fix mpcore watchdog")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
target/linux/cns3xxx/patches-4.14/020-watchdog_support.patch

index 9e3e31414c6820c6268a04df420ea3f8532e02f8..df413c90409d098e96db922f7f484257528bb301 100644 (file)
@@ -117,7 +117,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 +      struct resource *res;
 +      unsigned long rate = twd_timer_get_rate();
 +
-+      pr_info("MPCore WD init. clockrate: %u prescaler: %u countrate: %u timeout: %us\n", rate, 256, rate / 256, wdt_timeout);
++      pr_info("MPCore WD init. clockrate: %lu prescaler: %u countrate: %lu timeout: %us\n", rate, 256, rate / 256, wdt_timeout);
 +
 +      res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 +      if (!res)