qcacmn: Implement WMI/Credit History log print APIs

Create output agnostic log print APIs for WMI and Credit History to
enhance the debugging experience.

Change-Id: Ie89a9cb3b54c373ac2610d62003e940da17696d8
CRs-Fixed: 2028762
Этот коммит содержится в:
Dustin Brown
2017-04-03 17:00:07 -07:00
коммит произвёл Sandeep Puligilla
родитель 52e9bb6d6f
Коммит 536064a37e
7 изменённых файлов: 282 добавлений и 2 удалений

Просмотреть файл

@@ -92,6 +92,25 @@ typedef enum {
HTC_INITIAL_WAKE_UP,
} htc_credit_exchange_type;
static inline const char*
htc_credit_exchange_type_str(htc_credit_exchange_type type)
{
switch (type) {
case HTC_REQUEST_CREDIT:
return "HTC_REQUEST_CREDIT";
case HTC_PROCESS_CREDIT_REPORT:
return "HTC_PROCESS_CREDIT_REPORT";
case HTC_SUSPEND_ACK:
return "HTC_SUSPEND_ACK";
case HTC_SUSPEND_NACK:
return "HTC_SUSPEND_NACK";
case HTC_INITIAL_WAKE_UP:
return "HTC_INITIAL_WAKE_UP";
default:
return "Unknown htc_credit_exchange_type";
}
}
typedef struct {
htc_credit_exchange_type type;
uint64_t time;