[Crash-utility] 'wr' command doesn't handle big 64-bit values

Castor Fu castor.fu at 3pardata.com
Tue Jul 11 01:37:25 UTC 2006


This is a very small change... It looks like the 'wr' command cannot
take a 64-bit argument since it doesn't use stoll:

:simpsons; rcsdiff -c memory.c
===================================================================
RCS file: RCS/memory.c,v
retrieving revision 1.1
diff -c -r1.1 memory.c
*** memory.c    2006/07/11 01:31:37     1.1
--- memory.c    2006/07/11 01:32:39
***************
*** 1280,1286 ****
                addr_entered = TRUE;
  
                  if (args[++optind]) {
!                         value = stol(args[optind], FAULT_ON_ERROR, NULL);
                        value_entered = TRUE;
          
                        switch (size) 
--- 1280,1286 ----
                addr_entered = TRUE;
  
                  if (args[++optind]) {
!                         value = stoll(args[optind], FAULT_ON_ERROR, NULL);
                        value_entered = TRUE;
          
                        switch (size) 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20060710/bcf15b52/attachment.htm>


More information about the Crash-utility mailing list