Skip to content

Commit

Permalink
Cleaner debugger output for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
markflorisson committed Feb 22, 2011
1 parent ca5eedf commit c661988
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vm/plugins/example_plugin.py
Expand Up @@ -10,8 +10,8 @@
import cli

def cycle_progress_bar():
import time; time.sleep(0.01)
sys.stdout.write('\r%s' % simulator.cycles)
import time; time.sleep(0.005)
sys.stdout.write('%s\r' % simulator.cycles)
sys.stdout.flush()

def specify_interrupt():
Expand Down
4 changes: 2 additions & 2 deletions vm/vm.c
Expand Up @@ -688,8 +688,8 @@ vm_write_nbytes(VMState *state, VMStateDiff *diff, VMInfoType type,

if (location >= state->chunk + PRINT_OFFSET &&
location < state->chunk + PRINT_END)
printf("Value 0x%x written to 0x%x.\n", (unsigned int) value,
(unsigned int) destaddr);
printf("Value 0x%02x written to 0x%02x.\n", (unsigned int) value,
(unsigned int) destaddr);

/* finally, write the value */
vm_convert_endianness((char *) &value, nbytes);
Expand Down

0 comments on commit c661988

Please sign in to comment.