Module Name: src
Committed By: christos
Date: Sat Feb 7 19:36:42 UTC 2015
Modified Files:
src/sys/sys: callout.h
Log Message:
Add an FMT macro to snprintb the callout flags.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/sys/callout.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/sys/callout.h
diff -u src/sys/sys/callout.h:1.31 src/sys/sys/callout.h:1.32
--- src/sys/sys/callout.h:1.31 Mon Apr 28 16:24:10 2008
+++ src/sys/sys/callout.h Sat Feb 7 14:36:42 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: callout.h,v 1.31 2008/04/28 20:24:10 martin Exp $ */
+/* $NetBSD: callout.h,v 1.32 2015/02/07 19:36:42 christos Exp $ */
/*-
* Copyright (c) 2000, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -59,6 +59,13 @@ typedef struct callout {
#define CALLOUT_MPSAFE 0x0100 /* does not need kernel_lock */
#define CALLOUT_FLAGMASK 0xff00
+#define CALLOUT_FMT "\177\020\
+b\00BOUND\0\
+b\01PENDING\0\
+b\02FIRED\0\
+b\03INVOKING\0\
+b\10MPSAFE\0"
+
#ifdef _CALLOUT_PRIVATE
/* The following funkyness is to appease gcc3's strict aliasing. */