diff options
author | Alex Elder <elder@linaro.org> | 2014-07-09 07:15:17 -0500 |
---|---|---|
committer | Alex Elder <elder@linaro.org> | 2014-07-10 07:16:14 -0500 |
commit | fd2b09dea0342890bc72a871f0bbfeea9a9d1161 (patch) | |
tree | b1536c259925a3bd920a95a31d94d43f12153d8b /Documentation/cgroups/resource_counter.txt | |
parent | 6ed5ae227e6c676e8123543ef9d1bb72880d3969 (diff) |
printk: miscellaneous cleanupsreview/minor-printk-fixes-v2
This patch contains some small cleanups to kernel/printk/printk.c.
None of them should cause any change in behavior.
- When CONFIG_PRINTK is defined, parenthesize the value of LOG_LINE_MAX.
- When CONFIG_PRINTK is *not* defined, there is an extra LOG_LINE_MAX
definition; delete it.
- Pull an assignment out of a conditional expression in console_setup().
- Use isdigit() in console_setup() rather than open coding it.
- In update_console_cmdline(), drop a NUL-termination assignment;
the strlcpy() call that precedes it guarantees it's not needed.
- Simplify some logic in printk_timed_ratelimit().
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'Documentation/cgroups/resource_counter.txt')
0 files changed, 0 insertions, 0 deletions