Thread (22 messages) flat view 22 messages, 3 authors, 2021-06-09

RE: [PATCH RESEND iproute2-next] devlink: Add optional controller user input

From: Parav Pandit <hidden>
Date: 2021-06-07 11:44:01

Hi David,
From: David Ahern <redacted>
Sent: Monday, June 7, 2021 8:31 AM

On 6/3/21 5:19 AM, Parav Pandit wrote:
quoted
@@ -3795,7 +3806,7 @@ static void cmd_port_help(void)
 	pr_err("       devlink port param set DEV/PORT_INDEX name
PARAMETER value VALUE cmode { permanent | driverinit | runtime }\n");
quoted
 	pr_err("       devlink port param show [DEV/PORT_INDEX name
PARAMETER]\n");
quoted
 	pr_err("       devlink port health show [ DEV/PORT_INDEX reporter
REPORTER_NAME ]\n");
quoted
-	pr_err("       devlink port add DEV/PORT_INDEX flavour FLAVOUR
pfnum PFNUM [ sfnum SFNUM ]\n");
quoted
+	pr_err("       devlink port add DEV/PORT_INDEX flavour FLAVOUR
pfnum PFNUM [ sfnum SFNUM ] [ controller CNUM ]\n");
quoted
 	pr_err("       devlink port del DEV/PORT_INDEX\n");
 }
@@ -4324,7 +4335,7 @@ static int __cmd_health_show(struct dl *dl, bool
show_device, bool show_port);

 static void cmd_port_add_help(void)
 {
-	pr_err("       devlink port add { DEV | DEV/PORT_INDEX } flavour
FLAVOUR pfnum PFNUM [ sfnum SFNUM ]\n");
quoted
+	pr_err("       devlink port add { DEV | DEV/PORT_INDEX } flavour
FLAVOUR pfnum PFNUM [ sfnum SFNUM ] [ controller CNUM ]\n");

This line and the one above need to be wrapped. This addition puts it well
into the 90s.
It’s a print message.
I was following coding style of [1] that says "However, never break user-visible strings such as printk messages because that breaks the ability to grep for them.".
Recent code of dcb_ets.c has similar long string in print. So I didn't wrap it.
Should we warp it?

[1] https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help