]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaec4c31557efe19f02adfa446e01685db602aecb
treea3f0973bdd2debd67162f1d6ce1b0f1384067c28
parent4ba72441e9c5bf484461779347925e5e6b92fb57
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