[23083] trunk/launchd/src/launchd_runtime.c
Revision: 23083 http://trac.macosforge.org/projects/launchd/changeset/23083 Author: zarzycki@apple.com Date: 2007-02-18 21:17:07 -0800 (Sun, 18 Feb 2007) Log Message: ----------- More kqueue debug decoding. Modified Paths: -------------- trunk/launchd/src/launchd_runtime.c Modified: trunk/launchd/src/launchd_runtime.c =================================================================== --- trunk/launchd/src/launchd_runtime.c 2007-02-19 02:03:20 UTC (rev 23082) +++ trunk/launchd/src/launchd_runtime.c 2007-02-19 05:17:07 UTC (rev 23083) @@ -40,6 +40,7 @@ #include <sys/event.h> #include <sys/queue.h> #include <sys/socket.h> +#include <sys/mount.h> #include <bsm/libbsm.h> #include <malloc/malloc.h> #include <unistd.h> @@ -320,6 +321,30 @@ break; case EVFILT_FS: filter_str = "EVFILT_FS"; + snprintf(ident_buf, sizeof(ident_buf), "0x%lx", kev->ident); + if (fflags) while (fflags) { + if (fflags_off) { + *fflags_off = '|'; + fflags_off++; + *fflags_off = '\0'; + } else { + fflags_off = fflags_buf; + } + + FFLAGIF(VQ_NOTRESP) + else FFLAGIF(VQ_NEEDAUTH) + else FFLAGIF(VQ_LOWDISK) + else FFLAGIF(VQ_MOUNT) + else FFLAGIF(VQ_UNMOUNT) + else FFLAGIF(VQ_DEAD) + else FFLAGIF(VQ_ASSIST) + else FFLAGIF(VQ_NOTRESPLOCK) + else FFLAGIF(VQ_UPDATE) + else { + fflags_off += sprintf(fflags_off, "0x%x", fflags); + fflags = 0; + } + } break; default: snprintf(filter_buf, sizeof(filter_buf), "%d", kev->filter);
participants (1)
-
source_changes@macosforge.org