diff options
| author | vivek <vivek@cumulusnetworks.com> | 2018-08-27 22:13:30 +0000 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2018-08-27 22:13:30 +0000 |
| commit | f190902f523abaa1035cbbb385387bc6c72dd1dc (patch) | |
| tree | 9472de5fb49314eba45868ed7b66376f7329b2fe /lib/buffer.c | |
| parent | 9df2b997b975c7a7807e9e491989d5123d87458f (diff) | |
| parent | 95d8c3ce78cdd800f4c39d196e865c2ec9213f03 (diff) | |
Merge remote-tracking branch 'upstream/master' into evpn-extended-mobility
Conflicts:
zebra/zebra_vxlan.c
Diffstat (limited to 'lib/buffer.c')
| -rw-r--r-- | lib/buffer.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/buffer.c b/lib/buffer.c index 0292c85dac..1799c6b94f 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -274,19 +274,12 @@ buffer_status_t buffer_flush_window(struct buffer *b, int fd, int width, if (!b->head) return BUFFER_EMPTY; - if (height < 1) { - zlog_warn( - "%s called with non-positive window height %d, forcing to 1", - __func__, height); + if (height < 1) height = 1; - } else if (height >= 2) + else if (height >= 2) height--; - if (width < 1) { - zlog_warn( - "%s called with non-positive window width %d, forcing to 1", - __func__, width); + if (width < 1) width = 1; - } /* For erase and more data add two to b's buffer_data count.*/ if (b->head->next == NULL) { @@ -334,11 +327,6 @@ buffer_status_t buffer_flush_window(struct buffer *b, int fd, int width, { iov_alloc *= 2; if (iov != small_iov) { - zlog_warn( - "%s: growing iov array to %d; " - "width %d, height %d, size %lu", - __func__, iov_alloc, width, height, - (unsigned long)b->size); iov = XREALLOC(MTYPE_TMP, iov, iov_alloc * sizeof(*iov)); } else { |
