Print this page
12399 kobj printf functions should be checked

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/krtld/reloc.h
          +++ new/usr/src/uts/common/krtld/reloc.h
↓ 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  /*
  23   23   * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + *
       25 + * Copyright 2020 Joyent, Inc.
  24   26   */
  25   27  
  26   28  #ifndef _RELOC_DOT_H
  27   29  #define _RELOC_DOT_H
  28   30  
  29   31  #if defined(_KERNEL)
  30   32  #include <sys/bootconf.h>
  31   33  #include <sys/kobj.h>
  32   34  #include <sys/kobj_impl.h>
  33   35  #else
↓ open down ↓ 233 lines elided ↑ open up ↑
 267  269          _kobj_printf(ops, MSG_REL_FILE, (file)); \
 268  270          _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
 269  271          _kobj_printf(ops, MSG_REL_VALUE, EC_XWORD((uvalue))); \
 270  272          _kobj_printf(ops, MSG_REL_LOSEBITS, (int)(nbits)); \
 271  273          _kobj_printf(ops, MSG_REL_OFFSET, EC_NATPTR((off)))
 272  274  
 273  275  #define REL_ERR_NOFIT(lml, file, sym, rtype, uvalue) \
 274  276          _kobj_printf(ops, MSG_REL_PREGEN, CONV_RELOC_TYPE((rtype))); \
 275  277          _kobj_printf(ops, MSG_REL_FILE, (file)); \
 276  278          _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
 277      -        _kobj_printf(ops, MSG_REL_NOFIT, EC_XWORD((uvalue)))
      279 +        _kobj_printf(ops, MSG_REL_NOFIT, (u_longlong_t)EC_XWORD((uvalue)))
 278  280  
 279  281  
 280  282  #else   /* !_KERNEL */
 281  283  
 282  284  extern  const char *demangle(const char *);
 283  285  
 284  286  #define REL_ERR_UNIMPL(lml, file, sym, rtype) \
 285  287          (eprintf(lml, ERR_FATAL, MSG_INTL(MSG_REL_UNIMPL), (file), \
 286  288              ((sym) ? demangle(sym) : MSG_INTL(MSG_STR_UNKNOWN)), (int)(rtype)))
 287  289  
↓ open down ↓ 34 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX