]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: add macro for console error reporting
authorJohan Hovold <jhovold@gmail.com>
Mon, 6 Feb 2012 18:22:19 +0000 (19:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 16:43:02 +0000 (08:43 -0800)
commitf651d9c7602e70f5a6dbe6f443144409650aaf2c
tree468e72a4b8a7694163f257abcf2e892d2bc1042c
parentb98fa8e7c9f70aa98b69535309304b3e5c218814
USB: serial: add macro for console error reporting

Add macro which prints an error message only once if port is used a
console.

Reporting errors in a write path when port is used as a console could
otherwise result in an infinite loop.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/serial.h