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.14 by ats, Sun Jul 18 20:39:02 2004 UTC vs.
Revision 1.18 by tdb, Sun Oct 3 18:35:57 2010 UTC

# Line 62 | Line 62 | const char *sg_get_error_arg() {
62          return error_arg;
63   }
64  
65 < const int sg_get_error_errno() {
65 > int sg_get_error_errno() {
66          return errno_value;
67   }
68  
# Line 84 | Line 84 | const char *sg_str_error(sg_error code) {
84                  return "getmntinfo failed";
85          case SG_ERROR_GETPAGESIZE:
86                  return "getpagesize failed";
87 +        case SG_ERROR_HOST:
88 +                return "gather host information faile";
89          case SG_ERROR_KSTAT_DATA_LOOKUP:
90                  return "kstat_data_lookup failed";
91          case SG_ERROR_KSTAT_LOOKUP:
# Line 128 | Line 130 | const char *sg_str_error(sg_error code) {
130                  return "unsupported function";
131          case SG_ERROR_XSW_VER_MISMATCH:
132                  return "XSW version mismatch";
133 +        case SG_ERROR_PSTAT:
134 +                return "pstat failed";
135 +        case SG_ERROR_PDHOPEN:
136 +                return "PDH open failed";
137 +        case SG_ERROR_PDHCOLLECT:
138 +                return "PDH snapshot failed";
139 +        case SG_ERROR_PDHADD:
140 +                return "PDH add counter failed";
141 +        case SG_ERROR_PDHREAD:
142 +                return "PDH read counter failed";
143 +        case SG_ERROR_DEVICES:
144 +                return "failed to get device list";
145 +        case SG_ERROR_PERMISSION:
146 +                return "access violation";
147 +        case SG_ERROR_DISKINFO:
148 +                return "disk function failed";
149 +        case SG_ERROR_MEMSTATUS:
150 +                return "memory status failed";
151 +        case SG_ERROR_GETMSG:
152 +                return "getmsg failed";
153 +        case SG_ERROR_PUTMSG:
154 +                return "putmsg failed";
155          }
156          return "unknown error";
157   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines