mm: remove build warnings caused by product patch 89/158489/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 08:14:03 +0000 (17:14 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 08:14:06 +0000 (17:14 +0900)
There are build warnings, with printing format mismatch, which are
caused by product patch. Remove the build warnings.

Change-Id: I45e86000426f461332eb05ff15be97272f46e750
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
mm/page_alloc.c
mm/vmscan.c

index 00cf5b7..a7f0ce3 100644 (file)
@@ -3156,7 +3156,7 @@ static void show_migration_types(unsigned char type, unsigned long *nr_migrate)
 
        for (i = 0; i < MIGRATE_TYPES; i++) {
                if (type & (1 << i))
-                       p += sprintf(p, "%c%d", types[i], nr_migrate[i]);
+                       p += sprintf(p, "%c%lu", types[i], nr_migrate[i]);
        }
 
        *p = '\0';
index 1ab07a8..28d2a94 100644 (file)
@@ -3262,7 +3262,7 @@ void wakeup_kswapd(struct zone *zone, int order, enum zone_type classzone_idx)
        if(debug_kswapd_wakeup &&
                 zone_watermark_ok_safe(zone, order, high_wmark_pages(zone) + min_wmark_pages(zone), 0, 0))
        {
-               printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d,  min:%d, order:%d\r\n",
+               printk("%s(pages): free:%lu, free_cma:%lu, high:%lu, low:%lu,  min:%lu, order:%d\r\n",
                           __func__, global_page_state(NR_FREE_PAGES), global_page_state(NR_FREE_CMA_PAGES), high_wmark_pages(zone), low_wmark_pages(zone) , min_wmark_pages(zone) ,order);
                WARN_ON(1);
        }