Skip to contentSkip to conversation

scripts/checkpatch.pl: Replace kstrto with tst_parse_

PATCH In review Cyril Hrubis 3 participants 3 messages Nov 30, 2021 – Dec 6, 2021 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/checkpatch.pl: Replace kstrto with tst_parse_

Since there is no kstrto*() family of functions in LTP we do have tst_parse_*() instead.

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 87572b2f4..8c74d07b4 100755
@@ -6891,7 +6891,7 @@ sub process {
 				if ($count == 1 &&
 				    $format =~ /^"\%(?i:ll[udxi]|[udxi]ll|ll|[hl]h?[udxi]|[udxi][hl]h?|[hl]h?|[udxi])"$/) {
 					WARN("SSCANF_TO_KSTRTO",
-					     "Prefer kstrto<type> to single variable sscanf\n" . "$here\n$stat_real\n");
+					     "Prefer tst_parse_<type> to single variable sscanf\n" . "$here\n$stat_real\n");
 				}
 			}
 		}
Signature · 5 lines
2.32.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Cyril Hrubis

Since there is no kstrto*() family of functions in LTP we do have tst_parse_*() instead.

Signature · 2 lines
Regards,
Li Wang
Signature · 2 lines
-- 
Mailing list info: https://lists.linux.it/listinfo/ltp