From: Cyrill Gorcunov <gorcunov@gmail.com>
To: trinity@vger.kernel.org
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Subject: [PATCH 2/4] log: Add BUG_ON helper
Date: Fri, 25 Oct 2013 01:39:26 +0400 [thread overview]
Message-ID: <1382650768-30954-3-git-send-email-gorcunov@gmail.com> (raw)
In-Reply-To: <1382650768-30954-1-git-send-email-gorcunov@gmail.com>
We will use it in sockets creating routine.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
include/log.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/log.h b/include/log.h
index 500353d..22ad80a 100644
--- a/include/log.h
+++ b/include/log.h
@@ -59,4 +59,6 @@ void debugf(const char *fmt, ...);
}\
}
+#define BUG_ON(condition) do { if ((condition)) BUG(BUGTXT); } while (0)
+
#endif /* _LOG_H */
--
1.8.3.1
next prev parent reply other threads:[~2013-10-24 21:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-24 21:39 [PATCH 0/4] Teach trinity to not use some sockets family Cyrill Gorcunov
2013-10-24 21:39 ` [PATCH 1/4] make: Add cscope target Cyrill Gorcunov
2013-10-24 21:39 ` Cyrill Gorcunov [this message]
2013-10-24 21:39 ` [PATCH 3/4] params: Add parsing of -f|--fds option Cyrill Gorcunov
2013-10-24 21:39 ` [PATCH 4/4] sockets: Take into account socket families disabled when generating sockets Cyrill Gorcunov
2013-10-25 7:48 ` [PATCH 0/4] Teach trinity to not use some sockets family Cyrill Gorcunov
2013-10-31 19:49 ` Dave Jones
2013-10-31 20:05 ` Cyrill Gorcunov
2013-10-31 20:20 ` Dave Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382650768-30954-3-git-send-email-gorcunov@gmail.com \
--to=gorcunov@gmail.com \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox