diff options
author | Jan Janssen <medhefgo@web.de> | 2022-08-30 09:28:56 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-08-30 12:03:33 +0200 |
commit | 5570a09702b2a4c77772617d5fce97b6b70ec03f (patch) | |
tree | 6894fe53f7ed84cce0f20d1190648e0797ca8023 /src/cgtop/cgtop.c | |
parent | 2676befc73b3f40974ddad84972e873e5b826262 (diff) | |
download | systemd-5570a09702b2a4c77772617d5fce97b6b70ec03f.tar.gz |
tree-wide: Fix format specifier warnings for %x
Unfortunately, hex output can only be produced with unsigned types. Some
cases can be fixed by producing the correct type, but a few simply have
to be cast. At least casting makes it explicit.
Diffstat (limited to 'src/cgtop/cgtop.c')
-rw-r--r-- | src/cgtop/cgtop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index b023e71757..46f4624048 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -1086,7 +1086,7 @@ static int run(int argc, char *argv[]) { default: if (key < ' ') - fprintf(stdout, "\nUnknown key '\\x%x'. Ignoring.", key); + fprintf(stdout, "\nUnknown key '\\x%x'. Ignoring.", (unsigned) key); else fprintf(stdout, "\nUnknown key '%c'. Ignoring.", key); fflush(stdout); |