Commit 84ee84f9 authored by Scott Vokes's avatar Scott Vokes
Browse files

If a buffer used for snprintf-ing a log msg won't fit, note the __LINE__.

parent 8c1615c7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ struct boxed_msg;
                    "snprintf failure -- "                             \
                    __FILE__,                                          \
                    udata);                                            \
                char line_buf[32];                                     \
                snprintf(line_buf, 32, "line %d\n", __LINE__);         \
                _b->log_cb(event_key, level, line_buf, udata);         \
            } else {                                                   \
                _b->log_cb(event_key, level, log_buf, udata);          \
            }                                                          \