mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "msm: ipa: Update debugfs to print rules correctly"
This commit is contained in:
commit
400cd3cb0d
1 changed files with 4 additions and 3 deletions
|
|
@ -659,7 +659,7 @@ static int ipa3_attrib_dump(struct ipa_rule_attrib *attrib,
|
|||
dbg_buff + nbytes,
|
||||
IPA_MAX_MSG_LEN - nbytes,
|
||||
"\n");
|
||||
return 0;
|
||||
return nbytes;
|
||||
}
|
||||
|
||||
static int ipa3_attrib_dump_eq(struct ipa_ipfltri_rule_eq *attrib,
|
||||
|
|
@ -939,7 +939,8 @@ static ssize_t ipa3_read_rt(struct file *file, char __user *ubuf, size_t count,
|
|||
entry->rule.retain_hdr);
|
||||
}
|
||||
|
||||
ipa3_attrib_dump(&entry->rule.attrib, ip, nbytes);
|
||||
nbytes = ipa3_attrib_dump(&entry->rule.attrib,
|
||||
ip, nbytes);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
|
@ -1241,7 +1242,7 @@ static ssize_t ipa3_read_flt(struct file *file, char __user *ubuf, size_t count,
|
|||
goto bail;
|
||||
}
|
||||
} else
|
||||
ipa3_attrib_dump(
|
||||
nbytes = ipa3_attrib_dump(
|
||||
&entry->rule.attrib, ip, nbytes);
|
||||
i++;
|
||||
nbytes += scnprintf(
|
||||
|
|
|
|||
Loading…
Reference in a new issue