Skip to contentSkip to conversation

power: reset: keystone: fix missing space in error message

PATCH Applied Hemanth Selam 2 participants 2 messages Sep 7 – Sep 9

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 power: reset: keystone: fix missing space in error message

The two string literals are concatenated, so the message prints "has to contain atleast one entry".

v1 added the missing space but kept the string split across two lines. Krzysztof Kozlowski pointed out the string should not be wrapped at all, which also matches coding-style.rst: never break user-visible strings, because that breaks the ability to grep for them. Join it into one line instead; the result exceeds 80 columns, which is expected for a user-visible string.

Assisted-by Cursor:claude-opus-5
---
 drivers/power/reset/keystone-reset.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/power/reset/keystone-reset.c +1 -2
index 3c44cd6cee0a..491ba490b8ea 100644
@@ -112,8 +112,7 @@ static int rsctrl_probe(struct platform_device *pdev)
 	for (i = 0; i < WDT_MUX_NUMBER; i++) {
 		ret = of_property_read_u32_index(np, "ti,wdt-list", i, &val);
 		if (ret == -EOVERFLOW && !i) {
-			dev_err(dev, "ti,wdt-list property has to contain at"
-				"least one entry\n");
+			dev_err(dev, "ti,wdt-list property has to contain at least one entry\n");
 			return -EINVAL;
 		} else if (ret) {
 			break;
#1 lore raw
Quoted 11 lines · Hemanth Selam

The two string literals are concatenated, so the message prints "has to contain atleast one entry".

v1 added the missing space but kept the string split across two lines. Krzysztof Kozlowski pointed out the string should not be wrapped at all, which also matches coding-style.rst: never break user-visible strings, because that breaks the ability to grep for them. Join it into one line instead; the result exceeds 80 columns, which is expected for a user-visible string.

[...]

Applied, thanks!

[1/1] power: reset: keystone: fix missing space in error message

      commit: 49ee04619f820ac0e5ca618dfc0657229eadeddc

Best regards,

Signature · 1 line
Sebastian Reichel <[email protected]>