diff options
author | obrien <obrien@FreeBSD.org> | 2001-12-10 08:09:49 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-12-10 08:09:49 +0000 |
commit | 7fd9a6a23abf2fb25b5925b444d0eed93c8d06f6 (patch) | |
tree | b580d740769b3b201f76ad941e8b0b8ca3015bc0 /sys/dev/ppbus/ppb_msq.c | |
parent | 957a76ab241ec60b1b21124054416935dba9688b (diff) | |
download | FreeBSD-src-7fd9a6a23abf2fb25b5925b444d0eed93c8d06f6.zip FreeBSD-src-7fd9a6a23abf2fb25b5925b444d0eed93c8d06f6.tar.gz |
Update to C99, s/__FUNCTION__/__func__/,
also don't use ANSI string concatenation.
Diffstat (limited to 'sys/dev/ppbus/ppb_msq.c')
-rw-r--r-- | sys/dev/ppbus/ppb_msq.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/ppbus/ppb_msq.c b/sys/dev/ppbus/ppb_msq.c index 6cd99a0..9c83451 100644 --- a/sys/dev/ppbus/ppb_msq.c +++ b/sys/dev/ppbus/ppb_msq.c @@ -66,7 +66,7 @@ mode2xfer(device_t bus, struct ppb_device *ppbdev, int opcode) break; default: - panic("%s: unknown opcode (%d)", __FUNCTION__, opcode); + panic("%s: unknown opcode (%d)", __func__, opcode); } /* retrieve the device operating mode */ @@ -89,7 +89,7 @@ mode2xfer(device_t bus, struct ppb_device *ppbdev, int opcode) index = EPP19_MSQ; break; default: - panic("%s: unknown EPP protocol (0x%x)!", __FUNCTION__, + panic("%s: unknown EPP protocol (0x%x)!", __func__, epp); } break; @@ -97,7 +97,7 @@ mode2xfer(device_t bus, struct ppb_device *ppbdev, int opcode) index = ECP_MSQ; break; default: - panic("%s: unknown mode (%d)", __FUNCTION__, ppbdev->mode); + panic("%s: unknown mode (%d)", __func__, ppbdev->mode); } return (&table[index]); @@ -204,11 +204,11 @@ ppb_MS_init_msq(struct ppb_microseq *msq, int nbparam, ...) /* check the instruction position */ if (arg >= PPB_MS_MAXARGS) panic("%s: parameter out of range (0x%x)!", - __FUNCTION__, param); + __func__, param); #if 0 printf("%s: param = %d, ins = %d, arg = %d, type = %d\n", - __FUNCTION__, param, ins, arg, type); + __func__, param, ins, arg, type); #endif /* properly cast the parameter */ @@ -230,7 +230,7 @@ ppb_MS_init_msq(struct ppb_microseq *msq, int nbparam, ...) break; default: - panic("%s: unknown parameter (0x%x)!", __FUNCTION__, + panic("%s: unknown parameter (0x%x)!", __func__, param); } } @@ -288,7 +288,7 @@ ppb_MS_microseq(device_t bus, device_t dev, struct ppb_microseq *msq, int *ret) INCR_PC; goto next; } else - panic("%s: IEEE1284 read not supported", __FUNCTION__); + panic("%s: IEEE1284 read not supported", __func__); } /* XXX should use ppb_MS_init_msq() */ |