Wed, 13 Aug 2014 19:48:20 +0200
Added logging for wrong LCD buffer allocations
thermferm/lcd-buffer.c | file | annotate | diff | comparison | revisions |
--- a/thermferm/lcd-buffer.c Wed Aug 13 19:40:01 2014 +0200 +++ b/thermferm/lcd-buffer.c Wed Aug 13 19:48:20 2014 +0200 @@ -57,6 +57,7 @@ */ while (row > current_lines) { + syslog(LOG_NOTICE, "lcd_buf_write(%d, ...) allowcate new row", row); newrow = (lcd_rows *)malloc(sizeof(lcd_rows)); newrow->next = NULL; snprintf(newrow->row, (Config.lcd_cols + 1) * sizeof(char), " "); @@ -81,9 +82,10 @@ i++; if (i == row) { snprintf(tmp->row, Config.lcd_cols + 1, "%s", buf); - break; + return; } } + syslog(LOG_NOTICE, "lcd_buf_write(%d, ...) could not find row, i=%d", row, i); }