diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-03-07 16:36:30 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-03-07 16:36:30 +0100 |
commit | da4d3f143cb3fafd928e47b199a995dea3709d52 (patch) | |
tree | b848a6dfb8693cc5369bf0e08efbfe3c517d7259 /src/target/firmware/include/comm | |
parent | f5cd361f8ed711c04768228b319aad0e311b94d8 (diff) |
add comment on why using cons_puts() from msgb.h
Diffstat (limited to 'src/target/firmware/include/comm')
-rw-r--r-- | src/target/firmware/include/comm/msgb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/firmware/include/comm/msgb.h b/src/target/firmware/include/comm/msgb.h index 3aaeed43..07fdebd2 100644 --- a/src/target/firmware/include/comm/msgb.h +++ b/src/target/firmware/include/comm/msgb.h @@ -78,6 +78,9 @@ static inline unsigned char *msgb_put(struct msgb *msgb, unsigned int len) { unsigned char *tmp = msgb->tail; + /* we intentionally call cons_puts() here to display an allocation + * failure on the _other_ serial port (i.e. the one that doesn't + * have the HDLC layer on it */ if (msgb_tailroom(msgb) < len) cons_puts("msgb_tailroom insufficient!\n"); |