public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Mike Frysinger <vapier@gentoo.org>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] Annotate tst_*() helpers with?__attribute__	((format (printf, M, N)))
Date: Thu, 3 Sep 2009 20:05:02 +0200	[thread overview]
Message-ID: <20090903180502.GA30854@schrodinger.suse.cz> (raw)
In-Reply-To: <200908311633.32124.vapier@gentoo.org>

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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  parent reply	other threads:[~2009-09-03 18:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-27 15:04 [LTP] [PATCH] quotactl01: Fix tst_resm() format causing crash Geert Uytterhoeven
2009-08-27 15:29 ` [LTP] [PATCH] Annotate tst_*() helpers with __attribute__ ((format (printf, M, N))) (was: Re: [PATCH] quotactl01: Fix tst_resm() format causing crash) Geert Uytterhoeven
2009-08-28  6:08   ` Subrata Modak
2009-08-28  8:38     ` Subrata Modak
2009-08-28  8:48       ` Geert Uytterhoeven
2009-08-28 10:16         ` [LTP] [PATCH] Annotate tst_*() helpers with __attribute__ ((format (printf, M, N))) Mike Frysinger
2009-08-28  9:14       ` [LTP] [PATCH] Annotate tst_*() helpers with __attribute__ ((format (printf, M, N))) (was: Re: [PATCH] quotactl01: Fix tst_resm () format causing crash ) Mike Frysinger
2009-08-28 10:11         ` Subrata Modak
2009-08-28 14:44           ` [LTP] [PATCH] Annotate tst_*() helpers with __attribute__ ((format (printf, M, N))) Mike Frysinger
2009-08-28 14:54             ` [LTP] [PATCH] Annotate tst_*() helpers with?__attribute__ " Cyril Hrubis
     [not found]               ` <200908281106.13828.vapier@gentoo.org>
2009-08-28 16:29                 ` Cyril Hrubis
     [not found]                   ` <200908281517.46228.vapier@gentoo.org>
2009-08-31 10:06                     ` Cyril Hrubis
     [not found]                       ` <200908311633.32124.vapier@gentoo.org>
2009-09-03 18:05                         ` Cyril Hrubis [this message]
2009-08-30 17:37             ` [LTP] [PATCH] Annotate tst_*() helpers with __attribute__ " Subrata Modak
2009-08-27 19:22 ` [LTP] [PATCH] quotactl01: Fix tst_resm() format causing crash Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090903180502.GA30854@schrodinger.suse.cz \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox