diff options
| author | Keith Packard <keithp@keithp.com> | 2015-03-10 09:35:02 -0600 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-03-10 09:35:02 -0600 | 
| commit | fce4e6926de7cb5ef6ea64a8db134c442b86153b (patch) | |
| tree | d4b672aa68d29cb2041a48704f872a584051e335 /ao-tools/ao-list/ao-list.c | |
| parent | ce99807ef942de54a3f934d321baf3c3d26442bb (diff) | |
ao-tools/ao-list: Show devices that have no TTY
chaoskey doesn't advertise itself as a modem, so the kernel doesn't
allocate a tty device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-list/ao-list.c')
| -rw-r--r-- | ao-tools/ao-list/ao-list.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ao-tools/ao-list/ao-list.c b/ao-tools/ao-list/ao-list.c index c4b43d8f..4c065e79 100644 --- a/ao-tools/ao-list/ao-list.c +++ b/ao-tools/ao-list/ao-list.c @@ -28,12 +28,12 @@ main (int argc, char **argv)  	struct cc_usbdev	*dev;  	int			i; -	devs = cc_usbdevs_scan(); +	devs = cc_usbdevs_scan(TRUE);  	if (devs) {  		for (i = 0; i < devs->ndev; i++) {  			dev = devs->dev[i];  			printf ("%-20.20s %6d %s\n", -				dev->product, dev->serial, dev->tty); +				dev->product, dev->serial, dev->tty ? dev->tty : "(none)");  		}  		cc_usbdevs_free(devs);  	}  | 
