projects
/
platform
/
core
/
security
/
yaca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdb06a4
)
Silently export error translation function
02/74202/1
author
Krzysztof Jackiewicz
<k.jackiewicz@samsung.com>
Mon, 13 Jun 2016 07:27:56 +0000
(09:27 +0200)
committer
Krzysztof Jackiewicz
<k.jackiewicz@samsung.com>
Mon, 13 Jun 2016 07:29:00 +0000
(09:29 +0200)
Change-Id: I4cc7e8b2219b8c30f8a2895c91e2a2e5338232d5
src/debug.c
patch
|
blob
|
history
diff --git
a/src/debug.c
b/src/debug.c
index
2f277d0
..
02d80c6
100644
(file)
--- a/
src/debug.c
+++ b/
src/debug.c
@@
-41,7
+41,7
@@
API void yaca_debug_set_error_cb(yaca_error_cb fn)
error_cb = fn;
}
-
char *error_translate
(yaca_error_e err)
+
API char *yaca_debug_translate_error
(yaca_error_e err)
{
switch (err) {
case YACA_ERROR_NONE:
@@
-74,7
+74,7
@@
void error_dump(const char *file, int line, const char *function, int code)
char buf[BUF_SIZE];
unsigned long err;
size_t written;
- const char *err_str =
error_translate
(code);
+ const char *err_str =
yaca_debug_translate_error
(code);
written = snprintf(buf, BUF_SIZE, "%s:%d %s() API error: ", file, line, function);
if (err_str != NULL)