Re: [PATCH] ixen-netback: fix trivial printf format build warning

From: SeongJae Park
Date: Wed Mar 26 2014 - 14:52:43 EST


On Thu, Mar 27, 2014 at 3:46 AM, David Miller <davem@xxxxxxxxxxxxx> wrote:
> From: SeongJae Park <sj38.park@xxxxxxxxx>
> Date: Wed, 26 Mar 2014 19:34:21 +0900
>
>> Thank you for let me know kindly :)
>
> Also your fix wasn't correct.
>
> You changed the code to use %lx but the type isn't a long.
>
> It's the difference between two pointers, which is ptrdiff_t. The
> proper printf format string for a hexadecimal ptrdiff_t is %tx

You're right. Thanks for pointing that.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/