From 468520221a117e6e4fdad9ce3cbdb5983c2a5df5 Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Thu, 5 Feb 2009 12:57:57 -0800 Subject: [PATCH] Make network scan list a bit cleaner. --- eyefi-config.c | 2 +- eyefi-unix.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/eyefi-config.c b/eyefi-config.c index f4518fa..c0d13d3 100755 --- a/eyefi-config.c +++ b/eyefi-config.c @@ -336,7 +336,7 @@ char *net_test_state_name(u8 state) } const char *net_types[] = { - "No security", + "none", "WEP", "WPA", "unknown1", diff --git a/eyefi-unix.c b/eyefi-unix.c index a11926a..40af47a 100755 --- a/eyefi-unix.c +++ b/eyefi-unix.c @@ -70,10 +70,12 @@ void scan_print_nets(void) printf("Scanned wireless networks:\n"); for (i=0; i < scanned->nr; i++) { struct scanned_net *net = &scanned->nets[i]; - printf("'%s' type(%d): %s, strength: %d\n", net->essid, - net->type, - net_type_name(net->type), + printf("security: "); + if (eyefi_debug_level > 1) + printf("(%d)", net->type); + printf("%4s, strength: %3d ", net_type_name(net->type), net->strength); + printf("essid: '%s'\n", net->essid); } } -- 2.42.0