diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c index 550c0b2cf7..81981563cc 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c @@ -1,6 +1,6 @@ /* CTRC functionality */ /* Author: - Rudolf Cornelissen 11/2002-5/2004 + Rudolf Cornelissen 11/2002-6/2004 */ #define MODULE_BIT 0x00040000 @@ -545,12 +545,12 @@ status_t nv_crtc_dpms_fetch(bool *display, bool *h, bool *v) *h = !(CRTCR(REPAINT1) & 0x80); *v = !(CRTCR(REPAINT1) & 0x40); - LOG(4,("CTRC: fetched DPMS state:")); - if (display) LOG(4,("display on, ")); + LOG(4,("CTRC: fetched DPMS state: ")); + if (*display) LOG(4,("display on, ")); else LOG(4,("display off, ")); - if (h) LOG(4,("hsync enabled, ")); + if (*h) LOG(4,("hsync enabled, ")); else LOG(4,("hsync disabled, ")); - if (v) LOG(4,("vsync enabled\n")); + if (*v) LOG(4,("vsync enabled\n")); else LOG(4,("vsync disabled\n")); return B_OK; diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c index 87b6dc0f3d..0ee8973679 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c @@ -1,6 +1,6 @@ /* second CTRC functionality for GeForce cards */ /* Author: - Rudolf Cornelissen 11/2002-5/2004 + Rudolf Cornelissen 11/2002-6/2004 */ #define MODULE_BIT 0x00020000 @@ -528,12 +528,12 @@ status_t nv_crtc2_dpms_fetch(bool *display, bool *h, bool *v) *h = !(CRTC2R(REPAINT1) & 0x80); *v = !(CRTC2R(REPAINT1) & 0x40); - LOG(4,("CTRC2: fetched DPMS state:")); - if (display) LOG(4,("display on, ")); + LOG(4,("CTRC2: fetched DPMS state: ")); + if (*display) LOG(4,("display on, ")); else LOG(4,("display off, ")); - if (h) LOG(4,("hsync enabled, ")); + if (*h) LOG(4,("hsync enabled, ")); else LOG(4,("hsync disabled, ")); - if (v) LOG(4,("vsync enabled\n")); + if (*v) LOG(4,("vsync enabled\n")); else LOG(4,("vsync disabled\n")); return B_OK;