Re: [glommer-memcg:slab-common/kmalloc 19/30] mm/slab_common.c:206:6: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 28 Sep 2012, Fengguang Wu wrote:

> mm/slab_common.c: In function 'create_boot_cache':
> mm/slab_common.c:206:6: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Wformat]

The following fix will be applied to the next release of the patchset:

Index: linux/mm/slab_common.c
===================================================================
--- linux.orig/mm/slab_common.c	2012-09-28 12:25:00.614139749 -0500
+++ linux/mm/slab_common.c	2012-09-28 12:24:53.153984094 -0500
@@ -203,7 +203,7 @@ void __init create_boot_cache(struct kme
 	err = __kmem_cache_create(s, flags);

 	if (err)
-		panic("Creation of kmalloc slab %s size=%ld failed. Reason %d\n",
+		panic("Creation of kmalloc slab %s size=%td failed. Reason %d\n",
 					name, size, err);

 	list_add(&s->list, &slab_caches);
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux