Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/pcitool/pcitool_ui.c
          +++ new/usr/src/cmd/pcitool/pcitool_ui.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  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) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright 2012 Milan Jurik. All rights reserved.
       24 + * Copyright (c) 2018, Joyent, Inc.
  24   25   */
  25   26  
  26   27  /*
  27   28   * This is the user interface module for the pcitool.  It checks commandline
  28   29   * arguments and options and stores them in a pcitool_uiargs_t structure passed
  29   30   * back to the rest of the program for processing.
  30   31   *
  31   32   * Please see pcitool_usage.c for a complete commandline description.
  32   33   */
  33   34  
↓ open down ↓ 1383 lines elided ↑ open up ↑
1417 1418                          (void) fprintf(stderr, "Cpu argument "
1418 1419                              "exceeds maximum for this system type.\n");
1419 1420                          rval = FAILURE;
1420 1421                  } else {
1421 1422                          *cpu_arg = (uint32_t)value;
1422 1423                          *flags_arg |= CPU_SPEC_FLAG;
1423 1424                  }
1424 1425          } else {
1425 1426                  (void) fprintf(stderr,
1426 1427                      "Unrecognized option for -i -m -w\n");
1427      -                        rval = FAILURE;
     1428 +                rval = FAILURE;
1428 1429          }
1429 1430  
1430 1431          return (rval);
1431 1432  }
1432 1433  
1433 1434  
1434 1435  static int
1435 1436  parse_probeone_opts(
1436 1437      char *input, uint64_t *flags_arg, uint8_t *bus_arg, uint8_t *device_arg,
1437 1438      uint8_t *func_arg)
↓ open down ↓ 120 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX