diff options
author | Huang Ying <ying.huang@intel.com> | 2011-02-21 05:54:42 (GMT) |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-03-22 02:59:08 (GMT) |
commit | b64a44146540a4761bb1cf8047fffd9dbf0c3090 (patch) | |
tree | 2a6fd718db4c5885eab7b41e1c8139f7b259cf00 /drivers/hid/hid-lg2ff.c | |
parent | 885b976fada5bc6595a9fd3e67e3cb1a3d11f50b (diff) | |
download | linux-b64a44146540a4761bb1cf8047fffd9dbf0c3090.tar.xz |
PCIe, AER, use pre-generated prefix in error information printing
When printing PCIe AER error information, each line is prefixed with
PCIe device and driver information. In original implementation, the
prefix is generated when each line is printed. In fact, all lines
share the same prefix. So this patch pre-generated the prefix, and
use that one when each line is printed.
In addition to common prefix can be pre-generated, the trailing white
spaces in string constants and NULLs in char * array constants can be
removed too. These can reduce the object file size further.
The size of object file before and after changing is as follow:
text data bss dec
before: 3038 0 0 3038
after: 2118 0 0 2118
Signed-off-by: Huang Ying <ying.huang@intel.com>
CC: Jesse Barnes <jbarnes@virtuousgeek.org>
CC: Zhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/hid/hid-lg2ff.c')
0 files changed, 0 insertions, 0 deletions