Print this page
10130 smatch fixes for usr/src/cmd/fm

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fm/fmdump/common/fault.c
          +++ new/usr/src/cmd/fm/fmdump/common/fault.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) 2017, Joyent, Inc. All rights reserved.
       23 + * Copyright (c) 2018, Joyent, Inc.
  24   24   */
  25   25  
  26   26  #include <fmdump.h>
  27   27  #include <stdio.h>
  28   28  #include <strings.h>
  29   29  
  30   30  /*ARGSUSED*/
  31   31  static int
  32   32  flt_short(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp)
  33   33  {
↓ open down ↓ 142 lines elided ↑ open up ↑
 176  176  
 177  177          fmdump_printf(fp, "%s\n", ffp->do_hdr);
 178  178          fmdump_printf(fp, "%-20s.%9.9llu %-32s %s\n",
 179  179              fmdump_year(buf, sizeof (buf), rp), rp->rec_nsec, uuid, code);
 180  180  
 181  181          if (rp->rec_nrefs != 0)
 182  182                  fmdump_printf(fp, "\n  %s\n", efp->do_hdr);
 183  183  
 184  184          for (i = 0; i < rp->rec_nrefs; i++) {
 185  185                  fmdump_printf(fp, "  ");
 186      -                efp->do_func(lp, &rp->rec_xrefs[i], fp);
      186 +                (void) efp->do_func(lp, &rp->rec_xrefs[i], fp);
 187  187          }
 188  188  
 189  189          fmdump_printf(fp, "\n");
 190  190          if (pctl)
 191  191                  nvlist_prt(rp->rec_nvl, pctl);
 192  192          else
 193  193                  nvlist_print(fp, rp->rec_nvl);
 194  194          fmdump_printf(fp, "\n");
 195  195  
 196  196          return (0);
↓ open down ↓ 101 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX