Mercurial > mplayer.hg
comparison libvo/x11_common.c @ 17366:934380353fd6
massive attack: mp_msg printf format fixes
author | rathann |
---|---|
date | Thu, 12 Jan 2006 20:04:36 +0000 |
parents | f79b39b07cc3 |
children | f580a7755ac5 |
comparison
equal
deleted
inserted
replaced
17365:e2ca21ac42ce | 17366:934380353fd6 |
---|---|
203 XGetErrorText(display, event->error_code, (char *) &msg, MSGLEN); | 203 XGetErrorText(display, event->error_code, (char *) &msg, MSGLEN); |
204 | 204 |
205 mp_msg(MSGT_VO, MSGL_ERR, "X11 error: %s\n", msg); | 205 mp_msg(MSGT_VO, MSGL_ERR, "X11 error: %s\n", msg); |
206 | 206 |
207 mp_msg(MSGT_VO, MSGL_V, | 207 mp_msg(MSGT_VO, MSGL_V, |
208 "Type: %x, display: %x, resourceid: %x, serial: %x\n", | 208 "Type: %x, display: %p, resourceid: %lx, serial: %lx\n", |
209 event->type, event->display, event->resourceid, event->serial); | 209 event->type, event->display, event->resourceid, event->serial); |
210 mp_msg(MSGT_VO, MSGL_V, | 210 mp_msg(MSGT_VO, MSGL_V, |
211 "Error code: %x, request code: %x, minor code: %x\n", | 211 "Error code: %x, request code: %x, minor code: %x\n", |
212 event->error_code, event->request_code, event->minor_code); | 212 event->error_code, event->request_code, event->minor_code); |
213 | 213 |
1297 xev.message_type = XA_WIN_LAYER; | 1297 xev.message_type = XA_WIN_LAYER; |
1298 xev.format = 32; | 1298 xev.format = 32; |
1299 xev.data.l[0] = layer ? fs_layer : orig_layer; // if not fullscreen, stay on default layer | 1299 xev.data.l[0] = layer ? fs_layer : orig_layer; // if not fullscreen, stay on default layer |
1300 xev.data.l[1] = CurrentTime; | 1300 xev.data.l[1] = CurrentTime; |
1301 mp_msg(MSGT_VO, MSGL_V, | 1301 mp_msg(MSGT_VO, MSGL_V, |
1302 "[x11] Layered style stay on top (layer %d).\n", | 1302 "[x11] Layered style stay on top (layer %ld).\n", |
1303 xev.data.l[0]); | 1303 xev.data.l[0]); |
1304 XSendEvent(mDisplay, mRootWin, False, SubstructureNotifyMask, | 1304 XSendEvent(mDisplay, mRootWin, False, SubstructureNotifyMask, |
1305 (XEvent *) & xev); | 1305 (XEvent *) & xev); |
1306 } else if (vo_fs_type & vo_wm_NETWM) | 1306 } else if (vo_fs_type & vo_wm_NETWM) |
1307 { | 1307 { |
1602 { | 1602 { |
1603 mp_msg(MSGT_VO, MSGL_INFO, MSGTR_CouldNotFindXScreenSaver); | 1603 mp_msg(MSGT_VO, MSGL_INFO, MSGTR_CouldNotFindXScreenSaver); |
1604 return; | 1604 return; |
1605 } | 1605 } |
1606 mp_msg(MSGT_VO, MSGL_INFO, | 1606 mp_msg(MSGT_VO, MSGL_INFO, |
1607 "xscreensaver_disable: xscreensaver wid=%d.\n", xs_windowid); | 1607 "xscreensaver_disable: xscreensaver wid=%ld.\n", xs_windowid); |
1608 | 1608 |
1609 deactivate = XInternAtom(dpy, "DEACTIVATE", False); | 1609 deactivate = XInternAtom(dpy, "DEACTIVATE", False); |
1610 screensaver = XInternAtom(dpy, "SCREENSAVER", False); | 1610 screensaver = XInternAtom(dpy, "SCREENSAVER", False); |
1611 } | 1611 } |
1612 | 1612 |
1901 if (visuals != NULL) | 1901 if (visuals != NULL) |
1902 { | 1902 { |
1903 for (i = 0; i < nvisuals; i++) | 1903 for (i = 0; i < nvisuals; i++) |
1904 { | 1904 { |
1905 mp_msg(MSGT_VO, MSGL_V, | 1905 mp_msg(MSGT_VO, MSGL_V, |
1906 "vo: X11 truecolor visual %#x, depth %d, R:%lX G:%lX B:%lX\n", | 1906 "vo: X11 truecolor visual %#lx, depth %d, R:%lX G:%lX B:%lX\n", |
1907 visuals[i].visualid, visuals[i].depth, | 1907 visuals[i].visualid, visuals[i].depth, |
1908 visuals[i].red_mask, visuals[i].green_mask, | 1908 visuals[i].red_mask, visuals[i].green_mask, |
1909 visuals[i].blue_mask); | 1909 visuals[i].blue_mask); |
1910 /* | 1910 /* |
1911 * save the visual index and it's depth, if this is the first | 1911 * save the visual index and it's depth, if this is the first |
2345 mp_msg( MSGT_VO, MSGL_V, "\n[xv common] " ); | 2345 mp_msg( MSGT_VO, MSGL_V, "\n[xv common] " ); |
2346 | 2346 |
2347 switch ( xv_ck_info.source ) | 2347 switch ( xv_ck_info.source ) |
2348 { | 2348 { |
2349 case CK_SRC_CUR: | 2349 case CK_SRC_CUR: |
2350 mp_msg( MSGT_VO, MSGL_V, "Using colorkey from Xv (0x%06x).\n", | 2350 mp_msg( MSGT_VO, MSGL_V, "Using colorkey from Xv (0x%06lx).\n", |
2351 xv_colorkey ); | 2351 xv_colorkey ); |
2352 break; | 2352 break; |
2353 case CK_SRC_USE: | 2353 case CK_SRC_USE: |
2354 if ( xv_ck_info.method == CK_METHOD_AUTOPAINT ) | 2354 if ( xv_ck_info.method == CK_METHOD_AUTOPAINT ) |
2355 { | 2355 { |
2356 mp_msg( MSGT_VO, MSGL_V, | 2356 mp_msg( MSGT_VO, MSGL_V, |
2357 "Ignoring colorkey from MPlayer (0x%06x).\n", | 2357 "Ignoring colorkey from MPlayer (0x%06lx).\n", |
2358 xv_colorkey ); | 2358 xv_colorkey ); |
2359 } | 2359 } |
2360 else | 2360 else |
2361 { | 2361 { |
2362 mp_msg( MSGT_VO, MSGL_V, | 2362 mp_msg( MSGT_VO, MSGL_V, |
2363 "Using colorkey from MPlayer (0x%06x)." | 2363 "Using colorkey from MPlayer (0x%06lx)." |
2364 " Use -colorkey to change.\n", | 2364 " Use -colorkey to change.\n", |
2365 xv_colorkey ); | 2365 xv_colorkey ); |
2366 } | 2366 } |
2367 break; | 2367 break; |
2368 case CK_SRC_SET: | 2368 case CK_SRC_SET: |
2369 mp_msg( MSGT_VO, MSGL_V, | 2369 mp_msg( MSGT_VO, MSGL_V, |
2370 "Setting and using colorkey from MPlayer (0x%06x)." | 2370 "Setting and using colorkey from MPlayer (0x%06lx)." |
2371 " Use -colorkey to change.\n", | 2371 " Use -colorkey to change.\n", |
2372 xv_colorkey ); | 2372 xv_colorkey ); |
2373 break; | 2373 break; |
2374 } | 2374 } |
2375 } | 2375 } |