Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111155536
D23396.id67399.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
666 B
Referenced Files
None
Subscribers
None
D23396.id67399.diff
View Options
Index: sys/sys/systm.h
===================================================================
--- sys/sys/systm.h
+++ sys/sys/systm.h
@@ -111,12 +111,21 @@
kassert_panic msg; \
} \
} while (0)
+#define VNPASS(exp, vp) do { \
+ if (__predict_false(!(exp))) { \
+ vn_printf(vp, "VNASSERT failed\n"); \
+ kassert_panic ("condition %s not met at %s:%d (%s)", \
+ #exp, __FILE__, __LINE__, __func__); \
+ } \
+} while (0)
#else
#define KASSERT(exp,msg) do { \
} while (0)
#define VNASSERT(exp, vp, msg) do { \
} while (0)
+#define VNPASS(exp, vp) do { \
+} while (0)
#endif
#ifndef CTASSERT /* Allow lint to override */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 4:26 AM (15 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16897842
Default Alt Text
D23396.id67399.diff (666 B)
Attached To
Mode
D23396: vfs: add VNPASS macro and augment VNASSERT to print more about the assert
Attached
Detach File
Event Timeline
Log In to Comment