Skip to content

Commit

Permalink
treewide: kill dmesg spam v2
Browse files Browse the repository at this point in the history
Signed-off-by: engstk <eng.stk@sapo.pt>
  • Loading branch information
kristofpetho authored and engstk committed Sep 30, 2020
1 parent fd92259 commit 3b18e78
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 54 deletions.
12 changes: 6 additions & 6 deletions drivers/oneplus/op_freezer/op_freezer.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,37 +40,37 @@ int op_freezer_report(enum message_type type, int caller_pid, int target_uid, co
struct nlmsghdr *nlh = NULL;

if (atomic_read(&op_freezer_deamon_port) == -1) {
pr_err("%s: op_freezer_deamon_port invalid!\n", __func__);
// pr_err("%s: op_freezer_deamon_port invalid!\n", __func__);
return OP_FREEZER_ERROR;
}

if (sock_handle == NULL) {
pr_err("%s: sock_handle invalid!\n", __func__);
// pr_err("%s: sock_handle invalid!\n", __func__);
return OP_FREEZER_ERROR;
}

if (type >= TYPE_MAX) {
pr_err("%s: type = %d invalid!\n", __func__, type);
// pr_err("%s: type = %d invalid!\n", __func__, type);
return OP_FREEZER_ERROR;
}

len = sizeof(struct op_freezer_message);
skb = nlmsg_new(len, GFP_ATOMIC);
if (skb == NULL) {
pr_err("%s: type =%d, nlmsg_new failed!\n", __func__, type);
// pr_err("%s: type =%d, nlmsg_new failed!\n", __func__, type);
return OP_FREEZER_ERROR;
}

nlh = nlmsg_put(skb, 0, 0, 0, len, 0);
if (nlh == NULL) {
pr_err("%s: type =%d, nlmsg_put failed!\n", __func__, type);
// pr_err("%s: type =%d, nlmsg_put failed!\n", __func__, type);
kfree_skb(skb);
return OP_FREEZER_ERROR;
}

data = nlmsg_data(nlh);
if(data == NULL) {
pr_err("%s: type =%d, nlmsg_data failed!\n", __func__, type);
// pr_err("%s: type =%d, nlmsg_data failed!\n", __func__, type);
return OP_FREEZER_ERROR;
}
data->type = type;
Expand Down
6 changes: 3 additions & 3 deletions drivers/soc/qcom/watchdog_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,19 +493,19 @@ static void print_irq_stat(struct msm_watchdog_data *wdog_dd)
struct irq_info *info;


pr_info("(virq:irq_count)- ");
pr_debug("(virq:irq_count)- ");
for (index = 0; index < NR_TOP_HITTERS; index++) {
info = &wdog_dd->irq_counts[index];
pr_cont("%u:%u ", info->irq, info->total_count);
}
pr_cont("\n");

pr_info("(cpu:irq_count)- ");
pr_debug("(cpu:irq_count)- ");
for_each_possible_cpu(cpu)
pr_cont("%u:%u ", cpu, wdog_dd->tot_irq_count[cpu]);
pr_cont("\n");

pr_info("(ipi:irq_count)- ");
pr_debug("(ipi:irq_count)- ");
for (index = 0; index < NR_IPI; index++) {
info = &wdog_dd->ipi_counts[index];
pr_cont("%u:%u ", info->irq, info->total_count);
Expand Down
2 changes: 1 addition & 1 deletion fs/fuse/shortcircuit.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void fuse_setup_shortcircuit(struct fuse_conn *fc, struct fuse_req *req)
return;

req->private_lower_rw_file = rw_lower_file;
pr_info("fuse setup sct:%d, %d\n", fd, flags);
// pr_info("fuse setup sct:%d, %d\n", fd, flags);
}

static ssize_t fuse_shortcircuit_read_write_iter(struct kiocb *iocb,
Expand Down
2 changes: 1 addition & 1 deletion fs/sdcardfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static int sdcardfs_remount_fs2(struct vfsmount *mnt, struct super_block *sb,
pr_err("sdcardfs: remount flags 0x%x unsupported\n", *flags);
err = -EINVAL;
}
pr_info("Remount options were %s for vfsmnt %p.\n", options, mnt);
// pr_info("Remount options were %s for vfsmnt %p.\n", options, mnt);
err = parse_options_remount(sb, options, *flags & ~MS_SILENT, mnt->data);


Expand Down
10 changes: 5 additions & 5 deletions techpack/audio/asoc/codecs/tfa9894/tfa_dsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,7 @@ enum Tfa98xx_Error tfa98xx_powerdown(struct tfa_device *tfa, int powerdown)
if (tfa->in_use == 0)
return Tfa98xx_Error_NotOpen;

pr_info("tfa98xx_powerdown\n");
// pr_info("tfa98xx_powerdown\n");

error = TFA_SET_BF(tfa, PWDN, (uint16_t)powerdown);

Expand Down Expand Up @@ -3042,10 +3042,10 @@ enum tfa_error tfa_dev_start(struct tfa_device *tfa, int next_profile, int vstep
active_profile = -1;

/* TfaRun_SpeakerBoost implies un-mute */
pr_info("%s: Slave 0x%x, Active_profile:%s, next_profile:%s\n",
__func__, tfa->slave_address,
tfaContProfileName(tfa->cnt, tfa->dev_idx, active_profile),
tfaContProfileName(tfa->cnt, tfa->dev_idx, next_profile));
// pr_info("%s: Slave 0x%x, Active_profile:%s, next_profile:%s\n",
// __func__, tfa->slave_address,
// tfaContProfileName(tfa->cnt, tfa->dev_idx, active_profile),
// tfaContProfileName(tfa->cnt, tfa->dev_idx, next_profile));

err = show_current_state(tfa);

Expand Down
14 changes: 7 additions & 7 deletions techpack/audio/dsp/q6adm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3009,9 +3009,9 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,
int param_size;
int num_ec_ref_rx_chans = this_adm.num_ec_ref_rx_chans;

pr_info("%s:port %#x path:%d rate:%d mode:%d perf_mode:%d,topo_id %d app_type:%d acdb_id:%d\n",
__func__, port_id, path, rate, channel_mode, perf_mode,
topology, app_type, acdb_id);
// pr_info("%s:port %#x path:%d rate:%d mode:%d perf_mode:%d,topo_id %d app_type:%d acdb_id:%d\n",
// __func__, port_id, path, rate, channel_mode, perf_mode,
// topology, app_type, acdb_id);

port_id = q6audio_convert_virtual_to_portid(port_id);
port_idx = adm_validate_and_get_port_index(port_id);
Expand Down Expand Up @@ -3138,8 +3138,8 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,

/* Create a COPP if port id are not enabled */
if (atomic_read(&this_adm.copp.cnt[port_idx][copp_idx]) == 0) {
pr_info("%s: open ADM: port_idx: %d, copp_idx: %d\n", __func__,
port_idx, copp_idx);
// pr_info("%s: open ADM: port_idx: %d, copp_idx: %d\n", __func__,
// port_idx, copp_idx);
if ((topology == SRS_TRUMEDIA_TOPOLOGY_ID) &&
perf_mode == LEGACY_PCM_MODE) {
int res;
Expand Down Expand Up @@ -3817,8 +3817,8 @@ int adm_close(int port_id, int perf_mode, int copp_idx)
int ret = 0, port_idx;
int copp_id = RESET_COPP_ID;

pr_info("%s: port_id=0x%x perf_mode: %d copp_idx: %d\n", __func__,
port_id, perf_mode, copp_idx);
// pr_info("%s: port_id=0x%x perf_mode: %d copp_idx: %d\n", __func__,
// port_id, perf_mode, copp_idx);

port_id = q6audio_convert_virtual_to_portid(port_id);
port_idx = adm_validate_and_get_port_index(port_id);
Expand Down
62 changes: 31 additions & 31 deletions techpack/audio/dsp/q6afe.c
Original file line number Diff line number Diff line change
Expand Up @@ -2892,8 +2892,8 @@ static int afe_send_hw_delay(u16 port_id, u32 rate)
__func__, port_id, ret);

fail_cmd:
pr_info("%s: port_id 0x%x rate %u delay_usec %d status %d\n",
__func__, port_id, rate, delay_entry.delay_usec, ret);
// pr_info("%s: port_id 0x%x rate %u delay_usec %d status %d\n",
// __func__, port_id, rate, delay_entry.delay_usec, ret);
return ret;
}

Expand All @@ -2916,8 +2916,8 @@ static struct cal_block_data *afe_find_cal_topo_id_by_port(
/* Skip cal_block if it is already marked stale */
if (cal_utils_is_cal_stale(cal_block))
continue;
pr_info("%s: port id: 0x%x, dev_acdb_id: %d\n", __func__,
port_id, this_afe.dev_acdb_id[afe_port_index]);
// pr_info("%s: port id: 0x%x, dev_acdb_id: %d\n", __func__,
// port_id, this_afe.dev_acdb_id[afe_port_index]);
path = ((afe_get_port_type(port_id) ==
MSM_AFE_PORT_TYPE_TX)?(TX_DEVICE):(RX_DEVICE));
afe_top =
Expand All @@ -2926,16 +2926,16 @@ static struct cal_block_data *afe_find_cal_topo_id_by_port(
if (this_afe.dev_acdb_id[afe_port_index] > 0) {
if (afe_top->acdb_id ==
this_afe.dev_acdb_id[afe_port_index]) {
pr_info("%s: top_id:%x acdb_id:%d afe_port_id:0x%x\n",
__func__, afe_top->topology,
afe_top->acdb_id,
q6audio_get_port_id(port_id));
// pr_info("%s: top_id:%x acdb_id:%d afe_port_id:0x%x\n",
// __func__, afe_top->topology,
// afe_top->acdb_id,
// q6audio_get_port_id(port_id));
return cal_block;
}
} else {
pr_info("%s: top_id:%x acdb_id:%d afe_port:0x%x\n",
__func__, afe_top->topology, afe_top->acdb_id,
q6audio_get_port_id(port_id));
// pr_info("%s: top_id:%x acdb_id:%d afe_port:0x%x\n",
// __func__, afe_top->topology, afe_top->acdb_id,
// q6audio_get_port_id(port_id));
return cal_block;
}
}
Expand Down Expand Up @@ -2990,9 +2990,9 @@ static int afe_get_cal_topology_id(u16 port_id, u32 *topology_id,
*topology_id = (u32)afe_top_info->topology;
cal_utils_mark_cal_used(cal_block);

pr_info("%s: port_id = 0x%x acdb_id = %d topology_id = 0x%x cal_type_index=%d ret=%d\n",
__func__, port_id, afe_top_info->acdb_id,
afe_top_info->topology, cal_type_index, ret);
// pr_info("%s: port_id = 0x%x acdb_id = %d topology_id = 0x%x cal_type_index=%d ret=%d\n",
// __func__, port_id, afe_top_info->acdb_id,
// afe_top_info->topology, cal_type_index, ret);
unlock:
mutex_unlock(&this_afe.cal_data[cal_type_index]->lock);
return ret;
Expand Down Expand Up @@ -3047,8 +3047,8 @@ static int afe_send_port_topology_id(u16 port_id)
this_afe.topology[index] = topology_id;
rtac_update_afe_topology(port_id);
done:
pr_info("%s: AFE set topology id 0x%x enable for port 0x%x ret %d\n",
__func__, topology_id, port_id, ret);
// pr_info("%s: AFE set topology id 0x%x enable for port 0x%x ret %d\n",
// __func__, topology_id, port_id, ret);
return ret;

}
Expand Down Expand Up @@ -3284,8 +3284,8 @@ static struct cal_block_data *afe_find_cal(int cal_index, int port_id)
struct audio_cal_info_afe *afe_cal_info = NULL;
int afe_port_index = q6audio_get_port_index(port_id);

pr_info("%s: cal_index %d port_id 0x%x port_index %d\n", __func__,
cal_index, port_id, afe_port_index);
// pr_info("%s: cal_index %d port_id 0x%x port_index %d\n", __func__,
// cal_index, port_id, afe_port_index);
if (afe_port_index < 0) {
pr_err("%s: Error getting AFE port index %d\n",
__func__, afe_port_index);
Expand All @@ -3296,17 +3296,17 @@ static struct cal_block_data *afe_find_cal(int cal_index, int port_id)
&this_afe.cal_data[cal_index]->cal_blocks) {
cal_block = list_entry(ptr, struct cal_block_data, list);
afe_cal_info = cal_block->cal_info;
pr_info("%s: acdb_id %d dev_acdb_id %d sample_rate %d afe_sample_rates %d\n",
__func__, afe_cal_info->acdb_id,
this_afe.dev_acdb_id[afe_port_index],
afe_cal_info->sample_rate,
this_afe.afe_sample_rates[afe_port_index]);
// pr_info("%s: acdb_id %d dev_acdb_id %d sample_rate %d afe_sample_rates %d\n",
// __func__, afe_cal_info->acdb_id,
// this_afe.dev_acdb_id[afe_port_index],
// afe_cal_info->sample_rate,
// this_afe.afe_sample_rates[afe_port_index]);
if ((afe_cal_info->acdb_id ==
this_afe.dev_acdb_id[afe_port_index]) &&
(afe_cal_info->sample_rate ==
this_afe.afe_sample_rates[afe_port_index])) {
pr_info("%s: cal block is a match, size is %zd\n",
__func__, cal_block->cal_data.size);
// pr_info("%s: cal block is a match, size is %zd\n",
// __func__, cal_block->cal_data.size);
goto exit;
}
}
Expand All @@ -3323,7 +3323,7 @@ static int send_afe_cal_type(int cal_index, int port_id)
int ret;
int afe_port_index = q6audio_get_port_index(port_id);

pr_info("%s: cal_index is %d\n", __func__, cal_index);
// pr_info("%s: cal_index is %d\n", __func__, cal_index);

if (this_afe.cal_data[cal_index] == NULL) {
pr_warn("%s: cal_index %d not allocated!\n",
Expand All @@ -3340,9 +3340,9 @@ static int send_afe_cal_type(int cal_index, int port_id)
}

mutex_lock(&this_afe.cal_data[cal_index]->lock);
pr_info("%s: dev_acdb_id[%d] is %d\n",
__func__, afe_port_index,
this_afe.dev_acdb_id[afe_port_index]);
// pr_info("%s: dev_acdb_id[%d] is %d\n",
// __func__, afe_port_index,
// this_afe.dev_acdb_id[afe_port_index]);
if (((cal_index == AFE_COMMON_RX_CAL) ||
(cal_index == AFE_COMMON_TX_CAL) ||
(cal_index == AFE_LSM_TX_CAL)) &&
Expand All @@ -3358,7 +3358,7 @@ static int send_afe_cal_type(int cal_index, int port_id)
goto unlock;
}

pr_info("%s: Sending cal_index cal %d\n", __func__, cal_index);
// pr_info("%s: Sending cal_index cal %d\n", __func__, cal_index);

ret = remap_cal_data(cal_block, cal_index);
if (ret) {
Expand Down Expand Up @@ -5300,7 +5300,7 @@ static int __afe_port_start(u16 port_id, union afe_port_config *afe_config,
port_id = VIRTUAL_ID_TO_PORTID(port_id);
}

pr_info("%s: port id: 0x%x\n", __func__, port_id);
// pr_info("%s: port id: 0x%x\n", __func__, port_id);

index = q6audio_get_port_index(port_id);
if (index < 0 || index >= AFE_MAX_PORTS) {
Expand Down

0 comments on commit 3b18e78

Please sign in to comment.