Commit f62fc08f authored by Jim Cromie's avatar Jim Cromie Committed by Greg Kroah-Hartman

dyndbg: use gcc ?: to reduce word count

reduce word count via gcc ?: extension, no actual code change.

Acked-by: <jbaron@akamai.com>
Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
Link: https://lore.kernel.org/r/20200719231058.1586423-12-jim.cromie@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 47e9f5a8
...@@ -127,10 +127,10 @@ static void vpr_info_dq(const struct ddebug_query *query, const char *msg) ...@@ -127,10 +127,10 @@ static void vpr_info_dq(const struct ddebug_query *query, const char *msg)
vpr_info("%s: func=\"%s\" file=\"%s\" module=\"%s\" format=\"%.*s\" lineno=%u-%u\n", vpr_info("%s: func=\"%s\" file=\"%s\" module=\"%s\" format=\"%.*s\" lineno=%u-%u\n",
msg, msg,
query->function ? query->function : "", query->function ?: "",
query->filename ? query->filename : "", query->filename ?: "",
query->module ? query->module : "", query->module ?: "",
fmtlen, query->format ? query->format : "", fmtlen, query->format ?: "",
query->first_lineno, query->last_lineno); query->first_lineno, query->last_lineno);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment