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>
This commit is contained in:
Родитель
47e9f5a823
Коммит
f62fc08fdc
|
@ -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",
|
||||
msg,
|
||||
query->function ? query->function : "",
|
||||
query->filename ? query->filename : "",
|
||||
query->module ? query->module : "",
|
||||
fmtlen, query->format ? query->format : "",
|
||||
query->function ?: "",
|
||||
query->filename ?: "",
|
||||
query->module ?: "",
|
||||
fmtlen, query->format ?: "",
|
||||
query->first_lineno, query->last_lineno);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче