ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/error.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/error.c (file contents):
Revision 1.3 by tdb, Wed Apr 7 09:44:08 2004 UTC vs.
Revision 1.4 by tdb, Wed Apr 7 14:45:40 2004 UTC

# Line 44 | Line 44 | const char *sg_str_error(sg_error code) {
44          switch (code) {
45          case SG_ERROR_NONE:
46                  return "no error";
47 <        case SG_ERROR_MALLOC_FAILED:
48 <                return "malloc failed - out of memory";
47 >        case SG_ERROR_MALLOC:
48 >                return "malloc failed";
49 >        case SG_ERROR_KSTAT_OPEN:
50 >                return "failed to open kstat";
51 >        case SG_ERROR_OPEN:
52 >                return "failed to open file";
53 >        case SG_ERROR_SYSCTLBYNAME:
54 >                return "sysctlbyname failed";
55 >        case SG_ERROR_PARSE:
56 >                return "failed to parse input";
57 >        default:
58 >                return "unknown error";
59          }
50        return "unknown error";
60   }
61  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines