Print this page
OS-1840 fmdump shall emit JSON
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fm/fmdump/common/asru.c
          +++ new/usr/src/cmd/fm/fmdump/common/asru.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2013, Joyent, Inc. All rights reserved.
  23   24   */
  24   25  
  25   26  #include <fmdump.h>
  26   27  #include <strings.h>
  27   28  #include <stdio.h>
  28   29  #include <time.h>
  29   30  
  30   31  /*ARGSUSED*/
  31   32  static int
  32   33  asru_short(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp)
↓ open down ↓ 104 lines elided ↑ open up ↑
 137  138  "TIME                 UUID                                 STATE",
 138  139  (fmd_log_rec_f *)asru_verb1
 139  140  }, {
 140  141  "TIME                           UUID                                 STATE",
 141  142  (fmd_log_rec_f *)asru_verb2
 142  143  }, {
 143  144  "TIME                           UUID                                 STATE",
 144  145  (fmd_log_rec_f *)asru_pretty
 145  146  }, {
 146  147  NULL, NULL
      148 +}, {
      149 +NULL,
      150 +(fmd_log_rec_f *)fmdump_print_json
 147  151  } }
 148  152  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX