silence the 'using AGP/PCI' string unless VIA_DEBUG is used.
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 21 Jan 2005 09:50:48 +0000 (09:50 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 21 Jan 2005 09:50:48 +0000 (09:50 +0000)
src/mesa/drivers/dri/unichrome/via_fb.c

index 241bf0b9a3bb8beadc32cb9aef04e7155c4a5f1e..b590e833b690401d5bb042697aa7a8ca9bce9c03 100644 (file)
@@ -78,12 +78,15 @@ via_alloc_dma_buffer(viaContextPtr vmesa)
    vmesa->useAgp = 
      ( 0 == drmCommandWrite(vmesa->driFd, DRM_VIA_DMA_INIT, 
                             &init, sizeof(init)));
-   if (vmesa->useAgp) 
-      printf("unichrome_dri.so: Using AGP.\n");
-   else
-      printf("unichrome_dri.so: Using PCI.\n");
+   if (VIA_DEBUG) {
+      if (vmesa->useAgp) 
+         fprintf(stderr, "unichrome_dri.so: Using AGP.\n");
+      else
+         fprintf(stderr, "unichrome_dri.so: Using PCI.\n");
+   
+      fprintf(stderr, "%s - out\n", __FUNCTION__);
+   }
       
-   if (VIA_DEBUG) fprintf(stderr, "%s - out\n", __FUNCTION__);
    return ((vmesa->dma) ? GL_TRUE : GL_FALSE);
 }