* [PATCH][TRIVIAL] triple question marks in ppa.c
@ 2003-10-13 15:56 Rik van Riel
0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2003-10-13 15:56 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: Kernel Mailing List
Don't ask me why??? Triple question marks are a C trigraph in ansi C.
diff -urNp linux-5110/drivers/scsi/ppa.c linux-10010/drivers/scsi/ppa.c
--- linux-5110/drivers/scsi/ppa.c
+++ linux-10010/drivers/scsi/ppa.c
@@ -824,7 +824,7 @@ static void ppa_interrupt(void *data)
printk("ppa: told to abort\n");
break;
case DID_PARITY:
- printk("ppa: parity error (???)\n");
+ printk("ppa: parity error (?)\n");
break;
case DID_ERROR:
printk("ppa: internal driver error\n");
@@ -833,7 +833,7 @@ static void ppa_interrupt(void *data)
printk("ppa: told to reset device\n");
break;
case DID_BAD_INTR:
- printk("ppa: bad interrupt (???)\n");
+ printk("ppa: bad interrupt (?)\n");
break;
default:
printk("ppa: bad return code (%02x)\n", (cmd->result >> 16) & 0xff);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][TRIVIAL] triple question marks in ppa.c
@ 2003-10-14 2:22 Xose Vazquez Perez
0 siblings, 0 replies; 2+ messages in thread
From: Xose Vazquez Perez @ 2003-10-14 2:22 UTC (permalink / raw)
To: linux-kernel
Rik van Riel espetou:
> Don't ask me why??? Triple question marks are a C trigraph in ansi C.
^^^^^^^^^^^^^^^^^^^^^
[1]'ISO/IEC 9899:1999 Programming languages -- C' says in §5.2.1.1 that
C trigraph sequences are:
??= # ??) ] ??! |
??( [ ??' ^ ??> }
??/ \ ??< { ??- ~
"No other trigraph sequences exist", I didn't look [2] 'Corrigendum 1,
ISO/IEC 9899:1999/Cor 1:2001', but I think that they were not modified.
And inside of comments there are not trigraph substitutions, at least
in theory §6.4.9.
I only found a few in 2.4.22-bk30, aka 2.4.23-pre7:
http://marc.theaimsgroup.com/?l=linux-kernel&m=106565695609164&w=2
thanks to fix them ;-)
[1]
http://www.cl.cam.ac.uk/~mgk25/volatile/ISO-C-FDIS.1999-04.txt
http://www.cl.cam.ac.uk/~mgk25/volatile/ISO-C-FDIS.1999-04.pdf
[2]
http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=35952
--
Software is like sex, it's better when it's bug free.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-14 2:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-13 15:56 [PATCH][TRIVIAL] triple question marks in ppa.c Rik van Riel
2003-10-14 2:22 Xose Vazquez Perez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.