On Fri, 2017-06-23 at 20:53 -0500, Larry Finger wrote: > From: Ping-Ke Shih <pkshih@xxxxxxxxxxx> > > If we use seq_file to dump status, then we can use 'cat' to access > debugfs. Other related changes are > 1. implement btc_disp_dbg_msg() to access btcoex's common status. > 2. remove obsolete field bt_exist [] > diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c [] > @@ -2719,75 +2719,64 @@ void ex_btc8192e2ant_display_coex_info(struct btc_coexist *btcoexist) > u8 wifi_dot11_chnl, wifi_hs_chnl; > u32 fw_ver = 0, bt_patch_ver = 0; > > - RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, > - "\r\n ============[BT Coexist info]============"); > + seq_puts(m, "\r\n ============[BT Coexist info]============"); > > if (btcoexist->manual_control) { > - RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, > - "\r\n ===========[Under Manual Control]==========="); > - RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, > - "\r\n =========================================="); > - } > - > - if (!board_info->bt_exist) { > - RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n BT not exists !!!"); > - return; > + seq_puts(m, "\r\n ===========[Under Manual Control]==========="); > + seq_puts(m, "\r\n =========================================="); All the \r uses should probably be removed. > } > > - RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, > - "\r\n %-35s = %d/ %d ", "Ant PG number/ Ant mechanism:", > + seq_printf(m, "\r\n %-35s = %d/ %d ", "Ant PG number/ Ant mechanism:", > board_info->pg_ant_num, board_info->btdm_ant_num); etc...