samples: net: irc-bot: declare banner text at the top

For style points let's declare the text shown at the beginning
of main() function to the top of our source as APP_BANNER so that
it's obvious and presents nicely.

Signed-off-by: Michael Scott <michael.scott@linaro.org>
This commit is contained in:
Michael Scott 2017-10-05 22:41:43 -07:00 committed by Anas Nashif
parent b5617b1106
commit 34ca5ee67b

View file

@ -22,6 +22,8 @@
#error "CONFIG_NET_IPV6 or CONFIG_NET_IPV4 must be enabled for irc_bot"
#endif
#define APP_BANNER "Zephyr IRC bot sample"
#define CMD_BUFFER_SIZE 256
static u8_t cmd_buf[CMD_BUFFER_SIZE];
static u16_t cmd_len;
@ -703,7 +705,7 @@ void main(void)
struct zirc_chan chan = { };
int ret;
SYS_LOG_INF("Zephyr IRC bot sample");
SYS_LOG_INF(APP_BANNER);
initialize_hardware();