changeset 2445:c570836dd567

Suppressing warnings
author nick
date Wed, 24 Oct 2001 07:51:44 +0000
parents ec8ff6ea4af6
children 6fb598bd7ede
files linux/vbelib.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/linux/vbelib.c	Wed Oct 24 07:34:41 2001 +0000
+++ b/linux/vbelib.c	Wed Oct 24 07:51:44 2001 +0000
@@ -26,10 +26,10 @@
 {
   printf("vbelib:    eax=%08lXh ebx=%08lXh ecx=%08lXh edx=%08lXh\n"
 	 "vbelib:    edi=%08lXh esi=%08lXh ebp=%08lXh esp=%08lXh\n"
-	 "vbelib:    ds=%04lXh es=%04Xh ss=%04Xh cs:ip=%04X:%04X\n"
-	 "vbelib:    fs=%04lXh gs=%04Xh ss:sp=%04X:%04X flags=%04X\n"
-	 ,r->eax,r->ebx,r->ecx,r->edx
-	 ,r->edi,r->esi,r->ebp,r->reserved
+	 "vbelib:    ds=%04Xh es=%04Xh ss=%04Xh cs:ip=%04X:%04X\n"
+	 "vbelib:    fs=%04Xh gs=%04Xh ss:sp=%04X:%04X flags=%04X\n"
+	 ,(unsigned long)r->eax,(unsigned long)r->ebx,(unsigned long)r->ecx,(unsigned long)r->edx
+	 ,(unsigned long)r->edi,(unsigned long)r->esi,(unsigned long)r->ebp,(unsigned long)r->reserved
 	 ,r->ds,r->es,r->ss,r->cs,r->ip
 	 ,r->fs,r->gs,r->ss,r->sp,r->flags);
 }
@@ -45,7 +45,7 @@
   retval = LRMI_int(int_no,r);
   if(verbose > 1)
   {
-    printf("vbelib: Interrupt handler returns: %08lXh\n",retval);
+    printf("vbelib: Interrupt handler returns: %X\n",retval);
     printf("vbelib: registers after int %02X\n",int_no);
     __dump_regs(r);
   }    
@@ -277,7 +277,6 @@
 {
   struct LRMI_regs r;
   int retval;
-  void *rm_space;
   memset(&r,0,sizeof(struct LRMI_regs));
   r.eax = 0x4f04;
   r.edx = 0x02;