Re: [LTP] [PATCH] Annotate tst_*() helpers with?__attribute__ ((format (printf, M, N)))

Cyril Hrubis
2009-09-03T18:05:15Z

Ahoj!
> > That's still gives warning for me:
> >
> > warning: format '%lld' expects type 'long long int', but argument 6 has
> > type 'off_t'
> >
> > > i converted some tests to do this already (fallocate maybe?)
> >
> > Hmm, looks like there is loff_t used instead of off_t.
>
> loff_t is probably PRId64 while off_t is probably PRIu64

Hmm, seems like off_t is defined as long int on my machine. So following code
is came to my mind:

off_t t;
...
printf("off_t value %"PRId64"\n", (uint64_t) t);

--
Cyril Hrubis
chrubis@suse.cz