[PATCH 1/2] supplicant: Print human readable event names.

Ben Greear greearb
Fri Nov 4 16:28:36 PDT 2011


On 11/04/2011 04:26 PM, Dan Williams wrote:
> On Fri, 2011-11-04 at 16:14 -0700, greearb at candelatech.com wrote:
>> From: Ben Greear<greearb at candelatech.com>
>>
>> This makes it easier to understand the event related
>> logs.
>>
>> Also, print re-entrancy depth in the event handler.
>> I'm suspicious that it could be called in a re-entrant
>> manner if netlink events are received&  processed as
>> part of another event.
>>
>> Signed-hostap: Ben Greear<greearb at candelatech.com>
>> ---
>> :100644 100644 24a61e4... 6626c80... M	src/common/wpa_common.c
>> :100644 100644 06f2db3... ead35c0... M	src/drivers/driver.h
>> :100644 100644 9a0663b... 4b8ac96... M	wpa_supplicant/events.c
>>   src/common/wpa_common.c |   57 +++++++++++++++++++++++++++++++++++++++++++++++
>>   src/drivers/driver.h    |    4 +++
>>   wpa_supplicant/events.c |   13 +++++++---
>>   3 files changed, 70 insertions(+), 4 deletions(-)
>>
>> diff --git a/src/common/wpa_common.c b/src/common/wpa_common.c
>> index 24a61e4..6626c80 100644
>> --- a/src/common/wpa_common.c
>> +++ b/src/common/wpa_common.c
>> @@ -23,8 +23,65 @@
>>   #include "ieee802_11_defs.h"
>>   #include "defs.h"
>>   #include "wpa_common.h"
>> +#include "drivers/driver.h"
>>
>>
>> +const char* cstr(enum wpa_event_type event)
>
> Can we name that something other than "cstr", like maybe
> wpas_event_to_string() or event_to_string() or eventstr()?

Sure...  I'll fix that up shortly.

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com




More information about the Hostap mailing list