Changeset 493 in vbox
- Timestamp:
- Feb 1, 2007 8:43:08 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18098
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r488 r493 365 365 val = s->sr[s->sr_index]; 366 366 #ifdef DEBUG_VGA_REG 367 printf("vga: read SR%x = 0x%02x\n", s->sr_index, val);367 Log(("vga: read SR%x = 0x%02x\n", s->sr_index, val)); 368 368 #endif 369 369 break; … … 393 393 val = s->gr[s->gr_index]; 394 394 #ifdef DEBUG_VGA_REG 395 printf("vga: read GR%x = 0x%02x\n", s->gr_index, val);395 Log(("vga: read GR%x = 0x%02x\n", s->gr_index, val)); 396 396 #endif 397 397 break; … … 404 404 val = s->cr[s->cr_index]; 405 405 #ifdef DEBUG_VGA_REG 406 printf("vga: read CR%x = 0x%02x\n", s->cr_index, val);406 Log(("vga: read CR%x = 0x%02x\n", s->cr_index, val)); 407 407 #endif 408 408 break; … … 420 420 } 421 421 #if defined(DEBUG_VGA) 422 printf("VGA: read addr=0x%04x data=0x%02x\n", addr, val);422 Log(("VGA: read addr=0x%04x data=0x%02x\n", addr, val)); 423 423 #endif 424 424 return val; … … 436 436 437 437 #ifdef DEBUG_VGA 438 printf("VGA: write addr=0x%04x data=0x%02x\n", addr, val);438 Log(("VGA: write addr=0x%04x data=0x%02x\n", addr, val)); 439 439 #endif 440 440 … … 484 484 case 0x3c5: 485 485 #ifdef DEBUG_VGA_REG 486 printf("vga: write SR%x = 0x%02x\n", s->sr_index, val);486 Log(("vga: write SR%x = 0x%02x\n", s->sr_index, val)); 487 487 #endif 488 488 s->sr[s->sr_index] = val & sr_mask[s->sr_index]; … … 511 511 case 0x3cf: 512 512 #ifdef DEBUG_VGA_REG 513 printf("vga: write GR%x = 0x%02x\n", s->gr_index, val);513 Log(("vga: write GR%x = 0x%02x\n", s->gr_index, val)); 514 514 #endif 515 515 s->gr[s->gr_index] = val & gr_mask[s->gr_index]; … … 522 522 case 0x3d5: 523 523 #ifdef DEBUG_VGA_REG 524 printf("vga: write CR%x = 0x%02x\n", s->cr_index, val);524 Log(("vga: write CR%x = 0x%02x\n", s->cr_index, val)); 525 525 #endif 526 526 /* handle CR0-7 protection */ … … 948 948 949 949 #ifdef DEBUG_VGA_MEM 950 printf("vga: [0x%x] = 0x%02x\n", addr, val);950 Log(("vga: [0x%x] = 0x%02x\n", addr, val)); 951 951 #endif 952 952 /* convert to VGA memory offset */ … … 996 996 #endif /* VBOX */ 997 997 #ifdef DEBUG_VGA_MEM 998 printf("vga: chain4: [0x%x]\n", addr);998 Log(("vga: chain4: [0x%x]\n", addr)); 999 999 #endif 1000 1000 s->plane_updated |= mask; /* only used to detect font change */ … … 1028 1028 #endif /* VBOX */ 1029 1029 #ifdef DEBUG_VGA_MEM 1030 printf("vga: odd/even: [0x%x]\n", addr);1030 Log(("vga: odd/even: [0x%x]\n", addr)); 1031 1031 #endif 1032 1032 s->plane_updated |= mask; /* only used to detect font change */ … … 1124 1124 #endif /* VBOX */ 1125 1125 #ifdef DEBUG_VGA_MEM 1126 printf("vga: latch: [0x%x] mask=0x%08x val=0x%08x\n",1127 addr * 4, write_mask, val) ;1126 Log(("vga: latch: [0x%x] mask=0x%08x val=0x%08x\n", 1127 addr * 4, write_mask, val)); 1128 1128 #endif 1129 1129 #ifndef VBOX … … 1884 1884 line_offset = s->line_offset; 1885 1885 #if 0 1886 printf("w=%d h=%d v=%d line_offset=%d cr[0x09]=0x%02x cr[0x17]=0x%02x linecmp=%d sr[0x01]=0x%02x\n",1887 width, height, v, line_offset, s->cr[9], s->cr[0x17], s->line_compare, s->sr[0x01]) ;1886 Log(("w=%d h=%d v=%d line_offset=%d cr[0x09]=0x%02x cr[0x17]=0x%02x linecmp=%d sr[0x01]=0x%02x\n", 1887 width, height, v, line_offset, s->cr[9], s->cr[0x17], s->line_compare, s->sr[0x01])); 1888 1888 #endif 1889 1889 addr1 = (s->start_addr * 4);
Note:
See TracChangeset
for help on using the changeset viewer.