|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xsm: only log dummy override if not setting up dummy_xsm_ops
# HG changeset patch
# User Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
# Date 1324218769 0
# Node ID 31f09a4c577205e896895f4a510b576e76834c45
# Parent 3a27ab1ba08c7bf3d8377ce97a5fceb86dc1b23a
xsm: only log dummy override if not setting up dummy_xsm_ops
The log messages from dummy overrides appear on every boot with XSM
enabled, and are just noise when filling in the dummy_xsm_ops
structure.
Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
---
diff -r 3a27ab1ba08c -r 31f09a4c5772 xen/xsm/dummy.c
--- a/xen/xsm/dummy.c Sun Dec 18 14:32:26 2011 +0000
+++ b/xen/xsm/dummy.c Sun Dec 18 14:32:49 2011 +0000
@@ -469,14 +469,15 @@
struct xsm_operations dummy_xsm_ops;
-#define set_to_dummy_if_null(ops, function) \
- do { \
- if ( !ops->function ) \
- { \
- ops->function = dummy_##function; \
- dprintk(XENLOG_DEBUG, "Had to override the " #function \
- " security operation with the dummy one.\n"); \
- } \
+#define set_to_dummy_if_null(ops, function) \
+ do { \
+ if ( !ops->function ) \
+ { \
+ ops->function = dummy_##function; \
+ if (ops != &dummy_xsm_ops) \
+ dprintk(XENLOG_DEBUG, "Had to override the " #function \
+ " security operation with the dummy one.\n"); \
+ } \
} while (0)
void xsm_fixup_ops (struct xsm_operations *ops)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |