diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2002-08-09 20:54:06 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2002-08-09 20:54:06 +0000 |
| commit | fd4b4ecc738d0ec087fb11e1d58a054ebed27834 (patch) | |
| tree | 297a0ff3fecfeb293a7a7ae5d22b8c0e5db874cd /sys/dev/ata/atapi-all.c | |
| parent | a2c4d39d544810c60713850a23eb3d0aa9ac7c4f (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata/atapi-all.c')
| -rw-r--r-- | sys/dev/ata/atapi-all.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c index 36e3199c2998..3dc920ad9f2c 100644 --- a/sys/dev/ata/atapi-all.c +++ b/sys/dev/ata/atapi-all.c @@ -47,7 +47,6 @@ static void atapi_read(struct atapi_request *, int); static void atapi_write(struct atapi_request *, int); static void atapi_finish(struct atapi_request *); static void atapi_timeout(struct atapi_request *); -static char *atapi_type(int); static char *atapi_cmd2str(u_int8_t); static char *atapi_skey2str(u_int8_t); @@ -111,11 +110,12 @@ atapi_attach(struct ata_device *atadev) break; #endif } - ata_prtdev(atadev, "<%.40s/%.8s> %s device - NO DRIVER!\n", - atadev->param->model, atadev->param->revision, - atapi_type(atadev->param->type)); +#ifndef DEV_ATAPICAM + ata_prtdev(atadev, "<%.40s/%.8s> - NO DRIVER!\n", + atadev->param->model, atadev->param->revision); free(atadev->result, M_ATAPI); atadev->driver = NULL; +#endif } void @@ -632,23 +632,6 @@ atapi_timeout(struct atapi_request *request) } static char * -atapi_type(int type) -{ - switch (type) { - case ATAPI_TYPE_CDROM: - return "CDROM"; - case ATAPI_TYPE_DIRECT: - return "floppy"; - case ATAPI_TYPE_TAPE: - return "tape"; - case ATAPI_TYPE_OPTICAL: - return "optical"; - default: - return "Unknown"; - } -} - -static char * atapi_cmd2str(u_int8_t cmd) { switch (cmd) { |
