aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-02-19 09:40:58 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-21 10:24:32 +0100
commitaebe5fc3b5685e1d9b86cc8314a8e8f3c6f3284e (patch)
tree41bb80c7a9e1c3c8bcc491663571f407deefa0bf /tools/perf/scripts/python
parentn_hdlc: convert debuglevel use to pr_debug (diff)
downloadlinux-aebe5fc3b5685e1d9b86cc8314a8e8f3c6f3284e.tar.gz
linux-aebe5fc3b5685e1d9b86cc8314a8e8f3c6f3284e.zip
n_hdlc: put init/exit strings directly to prints
These strings were put aside from prints to save some bytes after module load or when built-in -- they were freed after module load (__init ones) or when the driver is selected as built-in (__exit ones). The savings are negligible, but the code readability is worse by the order of magnitude. So put the strings where they belong. Note that it also used to make little sense putting const data in .data (the __exit case). While at it, switch to pr_info, pr_err, not using the KERN_INFO and _ERR directly. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200219084118.26491-4-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions