History

checkpatch: add %pt as a valid vsprintf extension

Commit 4d42c44727a0 ("lib/vsprintf: Print time and date in human readable format via %pt") introduced a new extension, %pt. Add it in the list of valid extensions.

Alexandre Belloni committed 7 years ago

Commit 44629961 parent d2b2c6d1 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -5977,7 +5977,7 @@ sub process { · 5976 unmodified lines
59775977 while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) {
59785978 $specifier = $1;
59795979 $extension = $2;
5980− if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOx]/) {
5980+ if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) {
59815981 $bad_specifier = $specifier;
59825982 last;
59835983 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t