mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
log wpa messages
This commit is contained in:
parent
6e9402d8a0
commit
0bf42867ad
3 changed files with 15 additions and 1 deletions
|
|
@ -17,6 +17,8 @@
|
|||
* along with MiracleCast; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define LOG_SUBSYSTEM "wpa"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
|
|
@ -33,6 +35,7 @@
|
|||
#include "shl_dlist.h"
|
||||
#include "shl_util.h"
|
||||
#include "wpas.h"
|
||||
#include "shl_log.h"
|
||||
|
||||
#define CTRL_PATH_TEMPLATE "/tmp/.miracle-wpas-%d-%lu"
|
||||
|
||||
|
|
@ -742,6 +745,8 @@ static int wpas__parse_message(struct wpas *w,
|
|||
int r, num;
|
||||
bool is_event = false;
|
||||
|
||||
log_trace("raw message: %s", raw);
|
||||
|
||||
if ((pos = shl_startswith(raw, "IFNAME="))) {
|
||||
ifname = pos;
|
||||
pos = strchrnul(pos, ' ');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue