From 076f34dd478c87cd102ead15384f88862ac90290 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 25 Jan 2017 15:28:36 -0800 Subject: qcacld-3.0: Allow 16 characters for logging thread names When logging thread names, the wlan driver truncates them at 6 characters. Increase this limit to 16 to improve the debugging experience involving logs from kthreads. Change-Id: Ib494b12e04ddc8e24e73e77df467abc08ba7275e CRs-Fixed: 1116268 --- core/utils/logging/src/wlan_logging_sock_svc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/utils/logging/src/wlan_logging_sock_svc.c b/core/utils/logging/src/wlan_logging_sock_svc.c index a3f45d18f09a..4dd94d42d6bf 100644 --- a/core/utils/logging/src/wlan_logging_sock_svc.c +++ b/core/utils/logging/src/wlan_logging_sock_svc.c @@ -341,7 +341,7 @@ static int wlan_add_user_log_radio_time_stamp(char *tbuf, size_t tbuf_sz, qdf_get_time_of_the_day_in_hr_min_sec_usec(time_buf, sizeof(time_buf)); - tlen = scnprintf(tbuf, tbuf_sz, "R%d: [%.6s][%llu] %s ", radio, + tlen = scnprintf(tbuf, tbuf_sz, "R%d: [%.16s][%llu] %s ", radio, ((in_irq() ? "irq" : in_softirq() ? "soft_irq" : current->comm)), ts, time_buf); @@ -378,7 +378,7 @@ static int wlan_add_user_log_radio_time_stamp(char *tbuf, size_t tbuf_sz, qdf_get_time_of_the_day_in_hr_min_sec_usec(time_buf, sizeof(time_buf)); rem = do_div(ts, QDF_MC_TIMER_TO_SEC_UNIT); - tlen = scnprintf(tbuf, tbuf_sz, "R%d: [%.6s][%lu.%06lu] %s ", radio, + tlen = scnprintf(tbuf, tbuf_sz, "R%d: [%.16s][%lu.%06lu] %s ", radio, ((in_irq() ? "irq" : in_softirq() ? "soft_irq" : current->comm)), (unsigned long) ts, -- cgit v1.2.3