lkml.org 
[lkml]   [2008]   [Apr]   [1]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateTue, 1 Apr 2008 02:09:46 -0700
FromAndrew Morton <>
SubjectRe: [PATCH 1/7] LinuxPPS core support.
On Tue, 1 Apr 2008 10:59:50 +0200 Rodolfo Giometti <giometti@enneenne.com> wrote:

> On Fri, Mar 28, 2008 at 03:21:39AM -0700, Andrew Morton wrote:
> > On Thu,  6 Mar 2008 13:09:00 +0100 Rodolfo Giometti <giometti@linux.it> wrote:
> > 
> > > This patch adds the kernel side of the PPS support currently named
> > > "LinuxPPS".
> > 
> > powerpc:
> > 
> > drivers/pps/pps.c: In function 'pps_cdev_ioctl':
> > drivers/pps/pps.c:166: warning: format '%lld' expects type 'long long int', but argument 2 has type '__s64'
> > drivers/pps/kapi.c: In function 'pps_event':
> > drivers/pps/kapi.c:225: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__s64'
> > drivers/pps/sysfs.c: In function 'pps_show_assert':
> > drivers/pps/sysfs.c:42: warning: format '%lld' expects type 'long long int', but argument 3 has type '__s64'
> > drivers/pps/sysfs.c:42: warning: format '%lld' expects type 'long long int', but argument 3 has type '__s64'
> > drivers/pps/sysfs.c: In function 'pps_show_clear':
> > drivers/pps/sysfs.c:56: warning: format '%lld' expects type 'long long int', but argument 3 has type '__s64'
> > drivers/pps/sysfs.c:56: warning: format '%lld' expects type 'long long int', but argument 3 has type '__s64'
> 
> Oops! I have no powerpc system... how can I solve this issue?

Use %lld (if these things can legitimately be negative - otherwise %llu)
and cast the argument to (long long) or (unsigned long long).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-04-01 09:13    [W:0.268 / U:0.410 seconds]
©2003-2008 Jasper Spaans