Skip to content

Commit f62fc08

Browse files
jimcgregkh
authored andcommitted
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: Jim Cromie <jim.cromie@gmail.com> Link: https://lore.kernel.org/r/20200719231058.1586423-12-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 47e9f5a commit f62fc08

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎lib/dynamic_debug.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ static void vpr_info_dq(const struct ddebug_query *query, const char *msg)
127127

128128
vpr_info("%s: func=\"%s\" file=\"%s\" module=\"%s\" format=\"%.*s\" lineno=%u-%u\n",
129129
msg,
130-
query->function ? query->function : "",
131-
query->filename ? query->filename : "",
132-
query->module ? query->module : "",
133-
fmtlen, query->format ? query->format : "",
130+
query->function ?: "",
131+
query->filename ?: "",
132+
query->module ?: "",
133+
fmtlen, query->format ?: "",
134134
query->first_lineno, query->last_lineno);
135135
}
136136

0 commit comments

Comments
 (0)