Date: Fri, 6 Nov 2015 11:17:24 +0000 (UTC) From: Andriy Voskoboinyk <avos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290438 - head/sbin/ifconfig Message-ID: <201511061117.tA6BHOvP078167@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avos Date: Fri Nov 6 11:17:23 2015 New Revision: 290438 URL: https://svnweb.freebsd.org/changeset/base/290438 Log: ifconfig: fix padding for '<ifname> scan' command output (S:N and beacon interval fields). Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4085 Modified: head/sbin/ifconfig/ifieee80211.c Modified: head/sbin/ifconfig/ifieee80211.c ============================================================================== --- head/sbin/ifconfig/ifieee80211.c Fri Nov 6 08:43:12 2015 (r290437) +++ head/sbin/ifconfig/ifieee80211.c Fri Nov 6 11:17:23 2015 (r290438) @@ -3185,7 +3185,7 @@ list_scan(int s) getchaninfo(s); ssidmax = verbose ? IEEE80211_NWID_LEN - 1 : 14; - printf("%-*.*s %-17.17s %4s %4s %-7s %3s %4s\n" + printf("%-*.*s %-17.17s %4s %4s %-7s %3s %4s\n" , ssidmax, ssidmax, "SSID/MESH ID" , "BSSID" , "CHAN" @@ -3208,7 +3208,7 @@ list_scan(int s) idp = vp; idlen = sr->isr_ssid_len; } - printf("%-*.*s %s %3d %3dM %3d:%-3d %3d %-4.4s" + printf("%-*.*s %s %3d %3dM %4d:%-4d %4d %-4.4s" , ssidmax , copy_essid(ssid, ssidmax, idp, idlen) , ssid
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511061117.tA6BHOvP078167>