staging: fbtft: improve a syslog message in fbtft_register_framebuffer
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 2 Mar 2017 19:48:53 +0000 (20:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 16:31:56 +0000 (17:31 +0100)
commit18c6142168d061916f7020b80b2f746d4323b65d
treea3f0973bdd2debd67162f1d6ce1b0f1384067c28
parent425e586cf95b83b424bc949ea1c0c8bb2a2be608
staging: fbtft: improve a syslog message in fbtft_register_framebuffer

There are drivers like fb_sh1106 which allocate a txbuf less than 1 KiB.
In this case the message would include "0 KiB buffer memory" what
doesn't make sense and in general I doubt that there is any benefit in
informing the user about allocation of a very small buffer.

Therefore omit this message part if the buffer has less than 1 KiB.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c