]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make error messages consistent
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 8 Nov 2016 19:55:06 +0000 (14:55 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 8 Nov 2016 19:55:06 +0000 (14:55 -0500)
src/lib/event.c

index 21f7ba25a3aa5ab025293995e665b57f58dd4749..04c5a638d2d9af0c9bbbc5fb459f5db6f05185ee 100644 (file)
@@ -239,7 +239,7 @@ int fr_event_timer_insert(fr_event_list_t *el, fr_event_callback_t callback, voi
        ev->parent = parent;
 
        if (!fr_heap_insert(el->times, ev)) {
-               fr_strerror_printf("failed inserting event into heap");
+               fr_strerror_printf("Failed inserting event into heap");
                talloc_free(ev);
                return -1;
        }
@@ -308,17 +308,17 @@ int fr_event_fd_insert(fr_event_list_t *el, int fd,
        fr_event_fd_t *ef;
 
        if (!el) {
-               fr_strerror_printf("Invalid arguments (NULL event list)");
+               fr_strerror_printf("Invalid argument: NULL event list");
                return -1;
        }
 
        if (!read) {
-               fr_strerror_printf("Invalid arguments (NULL handler)");
+               fr_strerror_printf("Invalid arguments: NULL handler");
                return -1;
        }
 
        if (fd < 0) {
-               fr_strerror_printf("Invalid arguments (bad FD %i)", fd);
+               fr_strerror_printf("Invalid arguments: Bad FD %i", fd);
                return -1;
        }