Index: vbe.c
===================================================================
RCS file: /cvsroot/vesautils/vesautils/libvbe/vbe.c,v
retrieving revision 1.3
diff -b -u -b -B -T -w -p -r1.3 vbe.c
--- vbe.c	12 Aug 2005 17:53:54 -0000	1.3
+++ vbe.c	5 Sep 2005 16:21:45 -0000
@@ -96,7 +96,7 @@ static inline int VBE_LRMI_int(int int_n
	  return retval;
	}
	#else
-	#define VBE_LRMI_int(int_no,regs) (VBE_LRMI_int(int_no,regs))
+	#define VBE_LRMI_int(int_no,regs) (LRMI_int(int_no,regs))
	#endif
	
	/**
@@ -372,7 +372,9 @@ r.marek et sh.cvut.cz
	  for (i=0;((mode_table[i]!=(vesa_mode&0x3FF))&&(i<NR_MODES));i++) ;
	  
	  if (i==NR_MODES) return 0;
+	#ifdef	HAVE_VERBOSE_VAR
	  if(verbose > 1) printf("vbelib: Trying to set TV mode %x\n",tv_table[TV_mode][i]);
+	#endif//HAVE_VERBOSE_VAR
	  r.eax = 0x4f14;
	  r.ebx = 0x20;
	  r.edx = 0;
@@ -765,7 +767,9 @@ void * vbeMapVideoBuffer(unsigned long p
	{
	  void *lfb;
	  if(fd_mem == -1) return NULL;
+	#ifdef	HAVE_VERBOSE_VAR
	  if(verbose > 1) printf("vbelib: vbeMapVideoBuffer(%08lX,%08lX)\n",phys_addr,size);
+	#endif//HAVE_VERBOSE_VAR
	  /* Here we don't need with MAP_FIXED and prefered address (first argument) */
	  lfb = mmap((void *)0,size,PROT_READ | PROT_WRITE,MAP_SHARED,fd_mem,phys_addr);
	  return lfb == (void *)-1 ? 0 : lfb;
@@ -773,6 +777,8 @@ void * vbeMapVideoBuffer(unsigned long p
	
	void vbeUnmapVideoBuffer(unsigned long linear_addr,unsigned long size)
	{
+	#ifdef	HAVE_VERBOSE_VAR
	  if(verbose > 1) printf("vbelib: vbeUnmapVideoBuffer(%08lX,%08lX)\n",linear_addr,size);
+	#endif//HAVE_VERBOSE_VAR
	  munmap((void *)linear_addr,size);
	}

