patch-2.1.9 linux/scripts/ksymoops.cc

Next file: linux/CREDITS
Previous file: linux/net/sysctl_net.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.8/linux/scripts/ksymoops.cc linux/scripts/ksymoops.cc
@@ -50,7 +50,7 @@
     friend class NameList;
 
   private:
-    long address_;
+    unsigned long address_;
     char* name_;
     long offset_;
     long extent_;
@@ -107,7 +107,7 @@
   public:
     int valid() { return (cardinality_ > 0); }
 	
-    KSym* find(long address);
+    KSym* find(unsigned long address);
     void decode(unsigned char* code, long eip_addr);
     
   public:
@@ -115,7 +115,7 @@
 };
 
 KSym*
-NameList::find(long address)
+NameList::find(unsigned long address)
 {
     if (!valid())
 	return 0;
@@ -292,7 +292,7 @@
 	    if (ksym)
 		cout << ">>EIP: " << *ksym << endl;
 	} else if (strequ(buffer, "Trace:") && names.valid()) {
-	    long address;
+	    unsigned long address;
 	    while ((cin >> buffer) && 
 		   (sscanf(buffer, " [<%x>]", &address) == 1) &&
 		   address > 0xc) {


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov