mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: jengelh@medozas.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: Change %Z to %z in printf
Date: Sat, 07 Mar 2009 14:59:53 -0800 (PST)	[thread overview]
Message-ID: <20090307.145953.143128544.davem@davemloft.net> (raw)
In-Reply-To: <alpine.LSU.2.00.0903071952180.19385@fbirervta.pbzchgretzou.qr>

From: Jan Engelhardt <jengelh@medozas.de>
Date: Sat, 7 Mar 2009 19:54:45 +0100 (CET)

> I found out that %Z is actually a deprecated libc5-ism as printf(3) of 
> man-pages 3.17 dated 2008-12-19 tells me.
> 
> In ${kernel}/lib/vsprintf.c, I find the following note and wondered
> if there might be any objections to going back to 'z'.

GCC's printf formatting checks only started recognizing %z a few
releases ago.  We kept the %Z in there so that with all gcc versions
we won't get warnings.

We've recently increased the minimal GCC version, so going to %z might
be OK now.

      reply	other threads:[~2009-03-07 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-07 18:54 Jan Engelhardt
2009-03-07 22:59 ` David Miller [this message]

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=20090307.145953.143128544.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jengelh@medozas.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®