qcacmn: Move prints to QDF framework

Move all qdf_print from printk to qdf_trace_msg so that trace level
management can be carried out at runtime
In addition to the above, change contains removal of newline
escape characters from the format string of the converged
print APIs since qdf_trace_msg appends them by default.

Change-Id: I18cd06400bb9747761bbd86bfb38fe6d06106729
CRs-Fixed: 2243843
此提交包含在:
Aditya Sathish
2018-07-20 14:52:05 +05:30
提交者 nshrivas
父節點 dbacd5e70f
當前提交 1c42c27c80
共有 8 個檔案被更改,包括 111 行新增108 行删除

查看文件

@@ -144,7 +144,7 @@ do {\
lock->stats.num_large_holds++; \
if (QDF_LOCK_STATS_BUG_ON && max_hold_time && \
held_time > qdf_usecs_to_log_timestamp(max_hold_time)) { \
qdf_print("BEFORE_UNLOCK: lock held too long (%lluus)\n", \
qdf_warn("BEFORE_UNLOCK: lock held too long (%lluus)", \
qdf_log_timestamp_to_usecs(held_time)); \
QDF_BUG(0); \
} \
@@ -158,11 +158,11 @@ void qdf_lock_stats_cookie_create(struct lock_stats *stats,
static inline void qdf_lock_stats_destroy(struct lock_stats *stats)
{
if (QDF_LOCK_STATS_DESTROY_PRINT) {
qdf_print("%s: lock: %s %d \t"
qdf_debug("%s: lock: %s %d \t"
"acquired:\t%d\tcontended:\t%d\t"
"contention_time\t%llu\tmax_contention_wait:\t%llu\t"
"non_contention_time\t%llu\t"
"held_time\t%llu\tmax_held:\t%llu\t\n"
"held_time\t%llu\tmax_held:\t%llu"
, __func__, stats->initialization_fn, stats->line,
stats->acquired, stats->contended,
qdf_log_timestamp_to_usecs(stats->contention_time),