Deleted Added
full compact
dt_error.c (265234) dt_error.c (268578)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 97 unchanged lines hidden (view full) ---

106 { EDT_ELFVERSION, "libelf is out-of-date with respect to libdtrace" },
107 { EDT_NOBUFFERED, "Attempt to buffer output without handler" },
108 { EDT_UNSTABLE, "Description matched an unstable set of probes" },
109 { EDT_BADSETOPT, "Invalid setopt() library action" },
110 { EDT_BADSTACKPC, "Invalid stack program counter size" },
111 { EDT_BADAGGVAR, "Invalid aggregation variable identifier" },
112 { EDT_OVERSION, "Client requested deprecated version of library" },
113 { EDT_ENABLING_ERR, "Failed to enable probe" },
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 97 unchanged lines hidden (view full) ---

106 { EDT_ELFVERSION, "libelf is out-of-date with respect to libdtrace" },
107 { EDT_NOBUFFERED, "Attempt to buffer output without handler" },
108 { EDT_UNSTABLE, "Description matched an unstable set of probes" },
109 { EDT_BADSETOPT, "Invalid setopt() library action" },
110 { EDT_BADSTACKPC, "Invalid stack program counter size" },
111 { EDT_BADAGGVAR, "Invalid aggregation variable identifier" },
112 { EDT_OVERSION, "Client requested deprecated version of library" },
113 { EDT_ENABLING_ERR, "Failed to enable probe" },
114 { EDT_NOPROBES, "No probe sites found for declared provider" }
114 { EDT_NOPROBES, "No probe sites found for declared provider" },
115 { EDT_CANTLOAD, "Failed to load module" },
115};
116
117static const int _dt_nerr = sizeof (_dt_errlist) / sizeof (_dt_errlist[0]);
118
119const char *
120dtrace_errmsg(dtrace_hdl_t *dtp, int error)
121{
122 const char *str;

--- 118 unchanged lines hidden ---
116};
117
118static const int _dt_nerr = sizeof (_dt_errlist) / sizeof (_dt_errlist[0]);
119
120const char *
121dtrace_errmsg(dtrace_hdl_t *dtp, int error)
122{
123 const char *str;

--- 118 unchanged lines hidden ---