Mod aaa-12 修改一处多余的指针判断

RCA:
SOL:
修改人:huangxin
检视人:huangxin
This commit is contained in:
huangxin 2019-10-12 18:32:25 +08:00
parent 16d1705404
commit 834d9ff4e4
1 changed files with 3 additions and 2 deletions

View File

@ -46,6 +46,7 @@ static int proc_api_show(struct seq_file* seq, void* token)
{
PPROC_INFO pInfo = NULL, tmp = NULL;
int i = 0;
seq_printf(seq, "Total API items: %u\n", HASH_COUNT(g_proc_items));
seq_printf(seq, "API root direcotry: /proc/%s/\n", PROC_API_DIR_NAME);
seq_puts(seq, "-------------------------------------"
@ -58,7 +59,7 @@ static int proc_api_show(struct seq_file* seq, void* token)
HASH_ITER(hh, g_proc_items, pInfo, tmp) {
seq_printf(seq, "| %03d | %14s | %14s | %1s | %1s | %1s |\n",
i++,
pInfo->dir_name ? pInfo->dir_name : "",
pInfo->dir_name,
pInfo->data->name,
pInfo->data->show ? "*" : "-",
pInfo->data->ioctl ? "*" : "-",
@ -452,7 +453,7 @@ static ssize_t proc_seq_option_write(struct file* file, const char __user* userb
buf[count] = 0x00;
if(!process_input_content(seq, buf, pv) == ERR_DBGFS_NO_ERROR) {
if(process_input_content(seq, buf, pv) == ERR_DBGFS_NO_ERROR) {
printk(KERN_ERR "Input [%s] Process Error\n", buf);
}