summaryrefslogtreecommitdiffstats
path: root/tools/serial_probe/serial_probe.c
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-10-31 16:00:06 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-10-31 16:00:06 +0000
commitfe821c9ca0fcc081bbf42e6ee92aca114bcde32b (patch)
tree57bfddf18b179ea3fbe9258481d0633b913aa81c /tools/serial_probe/serial_probe.c
parent0d4c275cd59708cc674744b3b932f40ea083e7a6 (diff)
downloaddrakx-backup-do-not-use-fe821c9ca0fcc081bbf42e6ee92aca114bcde32b.tar
drakx-backup-do-not-use-fe821c9ca0fcc081bbf42e6ee92aca114bcde32b.tar.gz
drakx-backup-do-not-use-fe821c9ca0fcc081bbf42e6ee92aca114bcde32b.tar.bz2
drakx-backup-do-not-use-fe821c9ca0fcc081bbf42e6ee92aca114bcde32b.tar.xz
drakx-backup-do-not-use-fe821c9ca0fcc081bbf42e6ee92aca114bcde32b.zip
merge in with rh:
- new debug system - rename some fields - kill dead code - (setup_serial_port) return -1 if cfsetospeed() failled - (read_pnp_string) return PNP_COM_OK instead of 0 on success
Diffstat (limited to 'tools/serial_probe/serial_probe.c')
-rw-r--r--tools/serial_probe/serial_probe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/serial_probe/serial_probe.c b/tools/serial_probe/serial_probe.c
index b8abb6917..c00a6534d 100644
--- a/tools/serial_probe/serial_probe.c
+++ b/tools/serial_probe/serial_probe.c
@@ -39,9 +39,9 @@ struct device *newDevice(struct device *old, struct device *new) {
new = malloc(sizeof(struct device));
memset(new,'\0',sizeof(struct device));
}
- new->class = CLASS_UNSPEC;
+ new->type = CLASS_UNSPEC;
} else {
- new->class = old->class;
+ new->type = old->type;
if (old->device) new->device = strdup(old->device);
if (old->driver) new->driver = strdup(old->driver);
if (old->desc) new->desc = strdup(old->desc);
@@ -74,7 +74,7 @@ int main () {
while (devices) {
serialDevice = (struct serialDevice*)devices;
- printf("CLASS=%s\n", classStrings[serialDevice->class]);
+ printf("CLASS=%s\n", classStrings[serialDevice->type]);
printf("BUS=SERIAL\n");
printf("DEVICE=/dev/%s\n", serialDevice->device);
printf("DRIVER=%s\n", serialDevice->driver);