mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
To: Andrew Morton <akpm@osdl.org>
Cc: Dave Jones <davej@redhat.com>,
	jgarzik@pobox.com, linux-kernel@vger.kernel.org,
	mlindner@syskonnect.de
Subject: Re: skge missing ifdefs.
Date: Mon, 22 Aug 2005 21:35:23 +0100	[thread overview]
Message-ID: <20050822203522.GB9322@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20050822132333.2ff893e6.akpm@osdl.org>

On Mon, Aug 22, 2005 at 01:23:33PM -0700, Andrew Morton wrote:
> Works for me.  CONFIG_PM=n, CONFIG_SKGE=y or m, CONFIG_SK98LIN=y or m.
> 
> btw, is one of the recent `%td' fans going to, like, implement it in
> printk()?

Sent to Linus, sits in his queue...  Last iteration had been

mail -s '[PATCH] (45/46) %t... in vsnprintf' torvalds@osdl.org <<'EOF'
handling of %t... (ptrdiff_t) in vsnprintf

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
----
diff -urN RC13-rc6-git10-m68k-adb.patch/lib/vsprintf.c RC13-rc6-git10-printf-t/lib/vsprintf.c
--- RC13-rc6-git10-m68k-adb.patch/lib/vsprintf.c	2005-06-17 15:48:29.000000000 -0400
+++ RC13-rc6-git10-printf-t/lib/vsprintf.c	2005-08-18 14:24:08.000000000 -0400
@@ -269,6 +269,7 @@
 	int qualifier;		/* 'h', 'l', or 'L' for integer fields */
 				/* 'z' support added 23/7/1999 S.H.    */
 				/* 'z' changed to 'Z' --davidm 1/25/99 */
+				/* 't' added for ptrdiff_t */
 
 	/* Reject out-of-range values early */
 	if (unlikely((int) size < 0)) {
@@ -339,7 +340,7 @@
 		/* get the conversion qualifier */
 		qualifier = -1;
 		if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' ||
-		    *fmt =='Z' || *fmt == 'z') {
+		    *fmt =='Z' || *fmt == 'z' || *fmt == 't') {
 			qualifier = *fmt;
 			++fmt;
 			if (qualifier == 'l' && *fmt == 'l') {
@@ -467,6 +468,8 @@
 				num = (signed long) num;
 		} else if (qualifier == 'Z' || qualifier == 'z') {
 			num = va_arg(args, size_t);
+		} else if (qualifier == 't') {
+			num = va_arg(args, ptrdiff_t);
 		} else if (qualifier == 'h') {
 			num = (unsigned short) va_arg(args, int);
 			if (flags & SIGN)
EOF

  parent reply	other threads:[~2005-08-22 20:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01 20:34 Dave Jones
2005-08-01 20:38 ` Jeff Garzik
2005-08-22 19:59   ` Dave Jones
2005-08-22 20:22     ` David S. Miller
2005-08-22 20:23     ` Andrew Morton
2005-08-22 20:33       ` Dave Jones
2005-08-22 20:35       ` Al Viro [this message]
2005-08-22 20:42         ` Andrew Morton
2005-08-22 22:24           ` Roman Zippel
2005-08-23  6:02             ` Al Viro
2005-08-23 11:16               ` Roman Zippel
2005-08-23 21:44           ` Al Viro

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=20050822203522.GB9322@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=akpm@osdl.org \
    --cc=davej@redhat.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlindner@syskonnect.de \
    /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®