Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0596c8

Browse files
jdelvaretorvalds
authored andcommitted
kernel/params.c: improve STANDARD_PARAM_DEF readability
Align the parameters passed to STANDARD_PARAM_DEF for clarity. Link: http://lkml.kernel.org/r/20170928162728.756143cc@endymion Signed-off-by: Jean Delvare <[email protected]> Suggested-by: Ingo Molnar <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: Baoquan He <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 96802e6 commit e0596c8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

kernel/params.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ char *parse_args(const char *doing,
236236
EXPORT_SYMBOL(param_ops_##name)
237237

238238

239-
STANDARD_PARAM_DEF(byte, unsigned char, "%hhu", kstrtou8);
240-
STANDARD_PARAM_DEF(short, short, "%hi", kstrtos16);
241-
STANDARD_PARAM_DEF(ushort, unsigned short, "%hu", kstrtou16);
242-
STANDARD_PARAM_DEF(int, int, "%i", kstrtoint);
243-
STANDARD_PARAM_DEF(uint, unsigned int, "%u", kstrtouint);
244-
STANDARD_PARAM_DEF(long, long, "%li", kstrtol);
245-
STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", kstrtoul);
246-
STANDARD_PARAM_DEF(ullong, unsigned long long, "%llu", kstrtoull);
239+
STANDARD_PARAM_DEF(byte, unsigned char, "%hhu", kstrtou8);
240+
STANDARD_PARAM_DEF(short, short, "%hi", kstrtos16);
241+
STANDARD_PARAM_DEF(ushort, unsigned short, "%hu", kstrtou16);
242+
STANDARD_PARAM_DEF(int, int, "%i", kstrtoint);
243+
STANDARD_PARAM_DEF(uint, unsigned int, "%u", kstrtouint);
244+
STANDARD_PARAM_DEF(long, long, "%li", kstrtol);
245+
STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", kstrtoul);
246+
STANDARD_PARAM_DEF(ullong, unsigned long long, "%llu", kstrtoull);
247247

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

0 commit comments

Comments
 (0)