Commit 592ebd7
vsprintf: remove redundant and unused %pCn format specifier
%pC and %pCn print the same string, and commit 900cca2 ("lib/vsprintf:
add %pC{,n,r} format specifiers for clocks") introducing them does not
clarify any intended difference. It can be assumed %pC is a default for
%pCn as some other specifiers do, but not all are consistent with this
policy. Moreover there is now no other suffix other than 'n', which makes a
default not really useful.
All users in the kernel were using %pC except for one which has been
converted. So now remove %pCn and all the unnecessary extra code and
documentation.
Acked-by: Stephen Boyd <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Luca Ceresoli <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Tested-by: Petr Mladek <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>1 parent b0d71cb commit 592ebd7
File tree
3 files changed
+4
-12
lines changed- Documentation
- core-api
- translations/zh_CN/core-api
- lib
3 files changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | 574 | | |
576 | | - | |
| 575 | + | |
577 | 576 | | |
578 | 577 | | |
579 | 578 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
527 | 526 | | |
528 | | - | |
| 527 | + | |
529 | 528 | | |
530 | 529 | | |
531 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
1987 | 1984 | | |
1988 | | - | |
| 1985 | + | |
1989 | 1986 | | |
1990 | | - | |
| 1987 | + | |
1991 | 1988 | | |
1992 | | - | |
1993 | 1989 | | |
1994 | 1990 | | |
1995 | 1991 | | |
| |||
2391 | 2387 | | |
2392 | 2388 | | |
2393 | 2389 | | |
2394 | | - | |
2395 | | - | |
2396 | 2390 | | |
2397 | 2391 | | |
2398 | 2392 | | |
| |||
0 commit comments