[ros-bugs] [Bug 2418] New: setupldr.c cannot print number

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Tue Jul 17 11:18:38 CEST 2007


http://www.reactos.org/bugzilla/show_bug.cgi?id=2418

           Summary: setupldr.c cannot print number
           Product: ReactOS
           Version: 0.3.1
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Setup
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: toming.m.liu at foxconn.com
         QAContact: ros-bugs at reactos.org


If you try to print, like below

#if 1
  printf("low_mem = %d\n", LoaderBlock.MemLower);
  printf("high_mem = %d\n", LoaderBlock.MemHigher);
  MachConsGetCh();
#endif

It will outputs

low_mem = 
high_mem = 

but not

low_mem = 123
high_mem = 456

Fixed by modifying ReactOS-0.3.1/boot/freeldr/freeldr/ui/tui.c from

if (c == 'x')
    *_itoa(va_arg(ap, unsigned long), str, 16) = 0;
else
    *_itoa(va_arg(ap, unsigned long), str, 10) = 0;

to

if (c == 'x')
    _itoa(va_arg(ap, unsigned long), str, 16);
else
    _itoa(va_arg(ap, unsigned long), str, 10);


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.


More information about the Ros-bugs mailing list