diff options
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() */ |