[PATCH v2 3/3] params: Improve STANDARD_PARAM_DEF readability

From: Jean Delvare
Date: Thu Sep 28 2017 - 11:46:31 EST


Align the parameters passed to STANDARD_PARAM_DEF for clarity.

Suggested-by: Ingo Molnar <mingo@xxxxxxxxxx>
Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
---
Changes since v1:
* Patch added

kernel/params.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

--- linux-4.13.orig/kernel/params.c 2017-09-28 11:56:49.495406813 +0200
+++ linux-4.13/kernel/params.c 2017-09-28 13:44:33.943844491 +0200
@@ -236,14 +236,14 @@ char *parse_args(const char *doing,
EXPORT_SYMBOL(param_ops_##name)


-STANDARD_PARAM_DEF(byte, unsigned char, "%hhu", kstrtou8);
-STANDARD_PARAM_DEF(short, short, "%hi", kstrtos16);
-STANDARD_PARAM_DEF(ushort, unsigned short, "%hu", kstrtou16);
-STANDARD_PARAM_DEF(int, int, "%i", kstrtoint);
-STANDARD_PARAM_DEF(uint, unsigned int, "%u", kstrtouint);
-STANDARD_PARAM_DEF(long, long, "%li", kstrtol);
-STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", kstrtoul);
-STANDARD_PARAM_DEF(ullong, unsigned long long, "%llu", kstrtoull);
+STANDARD_PARAM_DEF(byte, unsigned char, "%hhu", kstrtou8);
+STANDARD_PARAM_DEF(short, short, "%hi", kstrtos16);
+STANDARD_PARAM_DEF(ushort, unsigned short, "%hu", kstrtou16);
+STANDARD_PARAM_DEF(int, int, "%i", kstrtoint);
+STANDARD_PARAM_DEF(uint, unsigned int, "%u", kstrtouint);
+STANDARD_PARAM_DEF(long, long, "%li", kstrtol);
+STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", kstrtoul);
+STANDARD_PARAM_DEF(ullong, unsigned long long, "%llu", kstrtoull);

int param_set_charp(const char *val, const struct kernel_param *kp)
{

--
Jean Delvare
SUSE L3 Support