lkml.org 
[lkml]   [2011]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH next/mmotm] slab: fix DEBUG_SLAB build
On Mon, 11 Jul 2011, Hugh Dickins wrote:

> -#if ARCH_SLAB_MINALIGN
> - if ((u32)objp & (ARCH_SLAB_MINALIGN-1)) {
> + if ((unsigned long)objp & (ARCH_SLAB_MINALIGN-1)) {
> printk(KERN_ERR "0x%p: not aligned to ARCH_SLAB_MINALIGN=%d\n",

Change %d to %ul for consistencies sake and drop the cast of
ARCH_SLAB_MINALIGN?



\
 
 \ /
  Last update: 2011-07-12 17:47    [W:0.060 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site