From bbb44c7f9a441fcedf0eee435dd8270b798dbe3f Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 7 Feb 2015 19:36:42 +0000 Subject: [PATCH] Add an FMT macro to snprintb the callout flags. --- sys/sys/callout.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/sys/callout.h b/sys/sys/callout.h index f83c40628d6d..0214b21fb058 100644 --- a/sys/sys/callout.h +++ b/sys/sys/callout.h @@ -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. */