lkml.org 
[lkml]   [2016]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] bridge: Fix format string for %ul
From
Date

On Aug 27, 2016, at 11:13 AM, Sergei Shtylyov wrote:

> Hello.
>
> On 8/27/2016 6:10 AM, Oleg Drokin wrote:
>
>> %ul would print an unsigned value and a letter l,
>> likely it was %lu that was meant to print the long int,
>> but in reality the values printed there are just regular signed
>
> Signed? Then you need probably "%d" or "%i"…

They are signed in the struct definition, but in reality they
designate time, so could not be negative, I imagine?

>
>> ints, so just dropping the l altogether.
>>
>> Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
> [...]
>
> MBR, Sergei

\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.069 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site