On 2018-12-23 23:51:41 +0100, Vincent Lefevre wrote:
> I got the following error (via wicd logs):
> 
> 2018/12/23 22:11:27 :: wpa_cli -i wlp61s0 terminate
> Failed to connect to non-global ctrl_ifname: wlp61s0  error: No such file or 
> directory
> 
> This should have been:
> 
> Failed to connect to non-global ctrl_ifname: wlp61s0
> error: No such file or directory

wpa_supplicant/wpa_cli.c contains:

                if (!global &&
                    wpa_cli_open_connection(ctrl_ifname, 0) < 0) {
                        fprintf(stderr, "Failed to connect to non-global "
                                "ctrl_ifname: %s  error: %s\n",
                                ctrl_ifname ? ctrl_ifname : "(nil)",
                                strerror(errno));
                        return -1;
                }

If the goal is to keep the error on the same line, the separator
should be clearer (not just spaces). Or the "error: %s" part could
be surrounded by parentheses.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to