Module Name: src
Committed By: pooka
Date: Thu Mar 25 19:54:19 UTC 2010
Modified Files:
src/sys/rump/librump/rumpdev: rump_dev_private.h
Log Message:
define the incredible FLAWLESSCALL macro in one place
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpdev/rump_dev_private.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/librump/rumpdev/rump_dev_private.h
diff -u src/sys/rump/librump/rumpdev/rump_dev_private.h:1.10 src/sys/rump/librump/rumpdev/rump_dev_private.h:1.11
--- src/sys/rump/librump/rumpdev/rump_dev_private.h:1.10 Mon Mar 1 13:12:20 2010
+++ src/sys/rump/librump/rumpdev/rump_dev_private.h Thu Mar 25 19:54:19 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_dev_private.h,v 1.10 2010/03/01 13:12:20 pooka Exp $ */
+/* $NetBSD: rump_dev_private.h,v 1.11 2010/03/25 19:54:19 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -39,4 +39,11 @@
int maa_unit;
};
+#define FLAWLESSCALL(call) \
+do { \
+ int att_error; \
+ if ((att_error = call) != 0) \
+ panic("\"%s\" failed", #call); \
+} while (/*CONSTCOND*/0)
+
#endif /* _SYS_RUMP_DEV_PRIVATE_H_ */