compositor: fix weston_log format warnings
compositor.c: In function ‘log_extensions’: compositor.c:3085:7: warning: field precision should have type ‘int’, but argument 2 has type ‘long int’ compositor.c:3087:4: warning: field precision should have type ‘int’, but argument 2 has type ‘long int’ Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
ae29da2eb8
commit
f1fc10a488
+5
-3
@@ -3075,16 +3075,18 @@ log_extensions(const char *name, const char *extensions)
|
|||||||
{
|
{
|
||||||
const char *p, *end;
|
const char *p, *end;
|
||||||
int l;
|
int l;
|
||||||
|
int len;
|
||||||
|
|
||||||
l = weston_log("%s:", name);
|
l = weston_log("%s:", name);
|
||||||
p = extensions;
|
p = extensions;
|
||||||
while (*p) {
|
while (*p) {
|
||||||
end = strchrnul(p, ' ');
|
end = strchrnul(p, ' ');
|
||||||
if (l + (end - p) > 78)
|
len = end - p;
|
||||||
|
if (l + len > 78)
|
||||||
l = weston_log_continue("\n" STAMP_SPACE "%.*s",
|
l = weston_log_continue("\n" STAMP_SPACE "%.*s",
|
||||||
end - p, p);
|
len, p);
|
||||||
else
|
else
|
||||||
l += weston_log_continue(" %.*s", end - p, p);
|
l += weston_log_continue(" %.*s", len, p);
|
||||||
for (p = end; isspace(*p); p++)
|
for (p = end; isspace(*p); p++)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user