[Mplayer-cvslog] CVS: main/drivers mga_vid.c,1.34,1.35

Dariush Pietrzak eyck at mplayer.dev.hu
Mon Feb 4 17:05:40 CET 2002


Update of /cvsroot/mplayer/main/drivers
In directory mplayer:/var/tmp.root/cvs-serv28884

Modified Files:
	mga_vid.c 
Log Message:
print also contrast on cat /dev/mga_vid


Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/drivers/mga_vid.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- mga_vid.c	3 Feb 2002 19:19:39 -0000	1.34
+++ mga_vid.c	4 Feb 2002 16:05:37 -0000	1.35
@@ -1360,13 +1360,15 @@
     unsigned len;
     len = 0;
     len += sprintf(&mga_param_buff[len],"Interface version: %04X\n",MGA_VID_VERSION);
-    len += sprintf(&mga_param_buff[len],"Memory: %x:%xM\n",mga_mem_base,mga_ram_size);
+    len += sprintf(&mga_param_buff[len],"Memory: %x:%dM\n",mga_mem_base,(unsigned int) mga_ram_size);
     len += sprintf(&mga_param_buff[len],"MMIO: %p\n",mga_mmio_base);
     len += sprintf(&mga_param_buff[len],"Configurable stuff:\n");
     len += sprintf(&mga_param_buff[len],"~~~~~~~~~~~~~~~~~~~\n");
-    len += sprintf(&mga_param_buff[len],PARAM_BRIGHTNESS"%X\n",regs.brightness);
+    len += sprintf(&mga_param_buff[len],PARAM_BRIGHTNESS"%d\n",regs.brightness);
+    len += sprintf(&mga_param_buff[len],PARAM_CONTRAST"%d\n",regs.contrast);
     len += sprintf(&mga_param_buff[len],PARAM_BLACKIE"%s\n",regs.blackie?"on":"off");
     mga_param_buff_len = len;
+    // check boundaries of mga_param_buff before writing to it!!!
 }
 
 




More information about the MPlayer-cvslog mailing list