Clean up debug prints to use wpa_printf()
This converts most of the remaining perror() and printf() calls from hostapd and wpa_supplicant to use wpa_printf(). Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
cad9b88be2
commit
a193231dfb
22 changed files with 315 additions and 220 deletions
|
@ -33,7 +33,7 @@ static void get_prg_fname(void)
|
|||
os_snprintf(exe, sizeof(exe) - 1, "/proc/%u/exe", getpid());
|
||||
len = readlink(exe, fname, sizeof(fname) - 1);
|
||||
if (len < 0 || len >= (int) sizeof(fname)) {
|
||||
perror("readlink");
|
||||
wpa_printf(MSG_ERROR, "readlink: %s", strerror(errno));
|
||||
return;
|
||||
}
|
||||
fname[len] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue