ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/src/mon.cpp
(Generate patch)

Comparing mon/src/mon.cpp (file contents):
Revision 1.25 by cebix, 2004-02-12T17:18:03Z vs.
Revision 1.26 by cebix, 2007-01-21T17:32:05Z

# Line 258 | Line 258 | void mon_write_word(uintptr adr, uint32
258   static void read_line(char *prompt)
259   {
260   #ifdef HAVE_LIBREADLINE
261        static char *line_read = NULL;
262
261          if (input)
262                  free(input);
263          input = readline(prompt);
# Line 815 | Line 813 | static void set_var()
813                  else {
814                          var_map::const_iterator v = vars.begin(), end = vars.end();
815                          for (v=vars.begin(); v!=end; ++v)
816 <                                fprintf(monout, "%s = %08x\n", v->first.c_str(), v->second);
816 >                                fprintf(monout, "%s = %08lx\n", v->first.c_str(), v->second);
817                  }
818  
819          } else if (mon_token == T_NAME) {
# Line 1189 | Line 1187 | void mon(int argc, char **argv)
1187          while (!done) {
1188                  if (interactive) {
1189                          char prompt[16];
1190 <                        sprintf(prompt, "[%0*lx]-> ", 2 * sizeof(mon_dot_address), mon_dot_address);
1190 >                        sprintf(prompt, "[%0*lx]-> ", int(2 * sizeof(mon_dot_address)), mon_dot_address);
1191                          read_line(prompt);
1192                          if (!input) {
1193                                  done = true;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines