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/busstat/busstat.c
          +++ new/usr/src/cmd/busstat/busstat.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       27 +/*
       28 + * Copyright (c) 2018, Joyent, Inc.
       29 + */
  28   30  
  29   31  #include <stdio.h>
  30   32  #include <stdlib.h>
  31   33  #include <strings.h>
  32   34  #include <time.h>
  33   35  #include <signal.h>
  34   36  #include <sys/types.h>
  35   37  #include <sys/stat.h>
  36   38  #include <sys/time.h>
  37   39  #include <sys/modctl.h>
↓ open down ↓ 353 lines elided ↑ open up ↑
 391  393                   * First arg must be device name.
 392  394                   */
 393  395                  if (!arg_num) {
 394  396                          parse_dev_inst(value);
 395  397                  } else {
 396  398                          if (mode == READ_EVT) {
 397  399                                  (void) fprintf(stderr, gettext("%s: "
 398  400                                          "event names or pic values not "
 399  401                                          "permitted with -r option.\n"),
 400  402                                              pgmname);
 401      -                                        usage();
      403 +                                usage();
 402  404                                  exit(1);
 403  405                          }
 404  406                          /*
 405  407                           * Now dealing with pic values.
 406  408                           */
 407  409                          parse_pic_evt(value);
 408  410                  }
 409  411                  /*
 410  412                   * After first strtok call, must set first arg
 411  413                   * to null if wish to parse rest of string.
↓ open down ↓ 1196 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX