2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright 2012 (c), Joyent, Inc. All rights reserved.
22 " \"sizes\": [ \"first\", 2, %f ]," \
28 " \"action\": \"%s\"" \
32 waiting(volatile int *a)
38 main(int argc, char **argv)
44 while (waiting(&a) == 0)
47 for (idx = 0; idx < 10; idx++) {
48 char *odd, *even, *json, *action;
51 odd = idx % 2 == 1 ? "true" : "false";
52 even = idx % 2 == 0 ? "true" : "false";
53 action = idx == 7 ? "ignore" : "print";
55 asprintf(&json, FMT, size, idx, odd, even, action);
56 BUNYAN_FAKE_LOG_DEBUG(json);
60 BUNYAN_FAKE_LOG_DEBUG("{\"finished\": true}");