VirtualBox

Changeset 493 in vbox


Ignore:
Timestamp:
Feb 1, 2007 8:43:08 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18098
Message:

Changed printfs to Logs in DevVGA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r488 r493  
    365365            val = s->sr[s->sr_index];
    366366#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));
    368368#endif
    369369            break;
     
    393393            val = s->gr[s->gr_index];
    394394#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));
    396396#endif
    397397            break;
     
    404404            val = s->cr[s->cr_index];
    405405#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));
    407407#endif
    408408            break;
     
    420420    }
    421421#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));
    423423#endif
    424424    return val;
     
    436436
    437437#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));
    439439#endif
    440440
     
    484484    case 0x3c5:
    485485#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));
    487487#endif
    488488        s->sr[s->sr_index] = val & sr_mask[s->sr_index];
     
    511511    case 0x3cf:
    512512#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));
    514514#endif
    515515        s->gr[s->gr_index] = val & gr_mask[s->gr_index];
     
    522522    case 0x3d5:
    523523#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));
    525525#endif
    526526        /* handle CR0-7 protection */
     
    948948
    949949#ifdef DEBUG_VGA_MEM
    950     printf("vga: [0x%x] = 0x%02x\n", addr, val);
     950    Log(("vga: [0x%x] = 0x%02x\n", addr, val));
    951951#endif
    952952    /* convert to VGA memory offset */
     
    996996#endif /* VBOX */
    997997#ifdef DEBUG_VGA_MEM
    998             printf("vga: chain4: [0x%x]\n", addr);
     998            Log(("vga: chain4: [0x%x]\n", addr));
    999999#endif
    10001000            s->plane_updated |= mask; /* only used to detect font change */
     
    10281028#endif /* VBOX */
    10291029#ifdef DEBUG_VGA_MEM
    1030             printf("vga: odd/even: [0x%x]\n", addr);
     1030            Log(("vga: odd/even: [0x%x]\n", addr));
    10311031#endif
    10321032            s->plane_updated |= mask; /* only used to detect font change */
     
    11241124#endif /* VBOX */
    11251125#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));
    11281128#endif
    11291129#ifndef VBOX
     
    18841884    line_offset = s->line_offset;
    18851885#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]));
    18881888#endif
    18891889    addr1 = (s->start_addr * 4);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette