Skip to content

Commit c635a39

Browse files
committed
vmside: Use correct format string instead of casting part 2
Fix format strings missed in "vmside: Use correct format string instead of casting" (829a7d5), too.
1 parent 1c925c9 commit c635a39

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

gui-agent/vmside.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ static void process_xevent_message(Ghandles * g, XClientMessageEvent * ev)
13281328
return;
13291329
}
13301330
if (act_type != g->xembed_info) {
1331-
fprintf(stderr, "window 0x%x havn't proper _XEMBED_INFO property, assuming defaults (workaround for buggy applications)\n", (unsigned int)w);
1331+
fprintf(stderr, "window 0x%lx havn't proper _XEMBED_INFO property, assuming defaults (workaround for buggy applications)\n", w);
13321332
}
13331333
if (act_type == g->xembed_info && nitems == 2) {
13341334
mapwindow = ((int*)data)[1] & XEMBED_MAPPED;
@@ -1534,21 +1534,17 @@ static int send_full_window_info(Ghandles *g, XID w, struct window_data *wd)
15341534
if (children_list)
15351535
XFree(children_list);
15361536
if (parent != g->root_win) {
1537-
fprintf(stderr, "Window 0x%x has parent 0x%x, which isn't root 0x%x.\n"
1537+
fprintf(stderr, "Window 0x%lx has parent 0x%lx, which isn't root 0x%lx.\n"
15381538
" Presumably window has been reparented at some point.\n"
15391539
" Skipping it.\n",
1540-
(unsigned int)window_to_query,
1541-
(unsigned int)parent,
1542-
(unsigned int)g->root_win);
1540+
window_to_query, parent, g->root_win);
15431541
return 0;
15441542
}
15451543
if (root != g->root_win) {
1546-
fprintf(stderr, "Window 0x%x has root 0x%x, which isn't expected root 0x%x.\n"
1544+
fprintf(stderr, "Window 0x%lx has root 0x%lx, which isn't expected root 0x%lx.\n"
15471545
" This is rather strange and probably indicates a bug somewhere.\n"
15481546
" Skipping it.\n",
1549-
(unsigned int)window_to_query,
1550-
(unsigned int)root,
1551-
(unsigned int)g->root_win);
1547+
window_to_query, root, g->root_win);
15521548
return 0;
15531549
}
15541550
if (!XGetTransientForHint(g->display, w, &transient))

0 commit comments

Comments
 (0)