A relatively common pattern in the ghw codebase
is concatenating quite a lot of strings inside
a format string. This leads to a pattern like '%s%s%s%s%s'
which are hard to read and to debug.
Ad a simple helper to concatenate strings to simplify the
format strings.
This may be the definitive solution here, but
it should improve the maintenability and readability,
and it's very cheap to implement and maintain.
A relatively common pattern in the ghw codebase is concatenating quite a lot of strings inside a format string. This leads to a pattern like '%s%s%s%s%s' which are hard to read and to debug.
Ad a simple helper to concatenate strings to simplify the format strings.
This may be the definitive solution here, but it should improve the maintenability and readability, and it's very cheap to implement and maintain.
Signed-off-by: Francesco Romani fromani@redhat.com