Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libfakekernel/common/printf.c
          +++ new/usr/src/lib/libfakekernel/common/printf.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright (c) 2012 by Delphix. All rights reserved.
  24   24   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       25 + * Copyright 2017 RackTop Systems.
  25   26   */
  26   27  
  27   28  #include <sys/param.h>
  28   29  #include <sys/types.h>
  29   30  #include <sys/varargs.h>
  30   31  #include <sys/systm.h>
  31   32  #include <sys/cmn_err.h>
  32   33  #include <sys/log.h>
  33   34  
  34   35  #include <fakekernel.h>
↓ open down ↓ 81 lines elided ↑ open up ↑
 116  117          (void) vsnprintf(panicbuf, sizeof (panicbuf), fmt, adx);
 117  118          assfail(panicbuf, "(panic)", 0);
 118  119  
 119  120          abort();        /* avoid "noreturn" warnings */
 120  121  }
 121  122  
 122  123  void
 123  124  panic(const char *fmt, ...)
 124  125  {
 125  126          va_list adx;
      127 +
      128 +        va_start(adx, fmt);
      129 +        vpanic(fmt, adx);
      130 +        va_end(adx);
      131 +}
      132 +
      133 +void
      134 +fm_panic(const char *fmt, ...)
      135 +{
      136 +        va_list adx;
 126  137  
 127  138          va_start(adx, fmt);
 128  139          vpanic(fmt, adx);
 129  140          va_end(adx);
 130  141  }
 131  142  
 132  143  void
 133  144  vcmn_err(int ce, const char *fmt, va_list adx)
 134  145  {
 135  146  
↓ open down ↓ 19 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX