diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2023-07-06 15:46:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 15:46:48 +0000 |
commit | e0f388c43f3144abb871cce2a7b44e85a36de48f (patch) | |
tree | cf41e5ae11ae7d0ad5ec0b49f5f4ac4531189eb3 /cli | |
parent | 3cc220ff5e38ef5cd96a64596c7e0c370d0fa074 (diff) |
Rename generic `error` function (#15296)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/cli.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -32,7 +32,7 @@ void *callocz_int(size_t nmemb, size_t size, const char *file __maybe_unused, co { void *p = calloc(nmemb, size); if (unlikely(!p)) { - error("Cannot allocate %zu bytes of memory.", nmemb * size); + netdata_log_error("Cannot allocate %zu bytes of memory.", nmemb * size); exit(1); } return p; @@ -42,7 +42,7 @@ void *mallocz_int(size_t size, const char *file __maybe_unused, const char *func { void *p = malloc(size); if (unlikely(!p)) { - error("Cannot allocate %zu bytes of memory.", size); + netdata_log_error("Cannot allocate %zu bytes of memory.", size); exit(1); } return p; @@ -52,7 +52,7 @@ void *reallocz_int(void *ptr, size_t size, const char *file __maybe_unused, cons { void *p = realloc(ptr, size); if (unlikely(!p)) { - error("Cannot allocate %zu bytes of memory.", size); + netdata_log_error("Cannot allocate %zu bytes of memory.", size); exit(1); } return p; @@ -70,7 +70,7 @@ void freez(void *ptr) { void *mallocz(size_t size) { void *p = malloc(size); if (unlikely(!p)) { - error("Cannot allocate %zu bytes of memory.", size); + netdata_log_error("Cannot allocate %zu bytes of memory.", size); exit(1); } return p; @@ -79,7 +79,7 @@ void *mallocz(size_t size) { void *callocz(size_t nmemb, size_t size) { void *p = calloc(nmemb, size); if (unlikely(!p)) { - error("Cannot allocate %zu bytes of memory.", nmemb * size); + netdata_log_error("Cannot allocate %zu bytes of memory.", nmemb * size); exit(1); } return p; @@ -88,7 +88,7 @@ void *callocz(size_t nmemb, size_t size) { void *reallocz(void *ptr, size_t size) { void *p = realloc(ptr, size); if (unlikely(!p)) { - error("Cannot allocate %zu bytes of memory.", size); + netdata_log_error("Cannot allocate %zu bytes of memory.", size); exit(1); } return p; |