summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-21 17:10:32 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-21 17:10:32 +0000
commit9820415d8a1e4bdc572683330f57aa1acb937d4c (patch)
tree81ff69a2aa0d7923da48a6b44a7d2778c86db3b0 /tools
parent9938f4264e1db36f12c1faef8e57b7641942dfeb (diff)
downloaddrakx-backup-do-not-use-9820415d8a1e4bdc572683330f57aa1acb937d4c.tar
drakx-backup-do-not-use-9820415d8a1e4bdc572683330f57aa1acb937d4c.tar.gz
drakx-backup-do-not-use-9820415d8a1e4bdc572683330f57aa1acb937d4c.tar.bz2
drakx-backup-do-not-use-9820415d8a1e4bdc572683330f57aa1acb937d4c.tar.xz
drakx-backup-do-not-use-9820415d8a1e4bdc572683330f57aa1acb937d4c.zip
adatp to latest kudzu api regarding serial detection (number suite => logical
bits)
Diffstat (limited to 'tools')
-rw-r--r--tools/serial_probe/serial_probe.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/tools/serial_probe/serial_probe.c b/tools/serial_probe/serial_probe.c
index c00a6534d..9fcf063be 100644
--- a/tools/serial_probe/serial_probe.c
+++ b/tools/serial_probe/serial_probe.c
@@ -74,7 +74,29 @@ int main () {
while (devices) {
serialDevice = (struct serialDevice*)devices;
- printf("CLASS=%s\n", classStrings[serialDevice->type]);
+ printf("CLASS=");
+ if (serialDevice->type == CLASS_UNSPEC) puts("UNSPEC"); else
+ if (serialDevice->type == CLASS_OTHER) puts("OTHER"); else
+ if (serialDevice->type == CLASS_NETWORK) puts("NETWORK"); else
+ if (serialDevice->type == CLASS_SCSI) puts("SCSI"); else
+ if (serialDevice->type == CLASS_MOUSE) puts("MOUSE"); else
+ if (serialDevice->type == CLASS_AUDIO) puts("AUDIO"); else
+ if (serialDevice->type == CLASS_CDROM) puts("CDROM"); else
+ if (serialDevice->type == CLASS_MODEM) puts("MODEM"); else
+ if (serialDevice->type == CLASS_VIDEO) puts("VIDEO"); else
+ if (serialDevice->type == CLASS_TAPE) puts("TAPE"); else
+ if (serialDevice->type == CLASS_FLOPPY) puts("FLOPPY"); else
+ if (serialDevice->type == CLASS_SCANNER) puts("SCANNER"); else
+ if (serialDevice->type == CLASS_HD) puts("HD"); else
+ if (serialDevice->type == CLASS_RAID) puts("RAID"); else
+ if (serialDevice->type == CLASS_PRINTER) puts("PRINTER"); else
+ if (serialDevice->type == CLASS_CAPTURE) puts("CAPTURE"); else
+ if (serialDevice->type == CLASS_KEYBOARD) puts("KEYBOARD"); else
+ if (serialDevice->type == CLASS_MONITOR) puts("MONITOR"); else
+ if (serialDevice->type == CLASS_USB) puts("USB"); else
+ if (serialDevice->type == CLASS_SOCKET) puts("SOCKET"); else
+ if (serialDevice->type == CLASS_FIREWIRE) puts("FIREWIRE"); else
+ if (serialDevice->type == CLASS_IDE) puts("IDE");
printf("BUS=SERIAL\n");
printf("DEVICE=/dev/%s\n", serialDevice->device);
printf("DRIVER=%s\n", serialDevice->driver);