ceed.c (a2cba4be6838e1a18742bb6cef1b14b2cf87e1c8) ceed.c (990fdeb6bb8fc9af2da4472bdc0d1f57da5da0e5)
1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8#define _POSIX_C_SOURCE 200112

--- 1203 unchanged lines hidden (view full) ---

1212 if (ceed->parent)
1213 return CeedErrorStore(ceed->parent, filename, line_no, func, err_code, format,
1214 args);
1215 if (ceed->op_fallback_parent)
1216 return CeedErrorStore(ceed->op_fallback_parent, filename, line_no, func,
1217 err_code, format, args);
1218
1219 // Build message
1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8#define _POSIX_C_SOURCE 200112

--- 1203 unchanged lines hidden (view full) ---

1212 if (ceed->parent)
1213 return CeedErrorStore(ceed->parent, filename, line_no, func, err_code, format,
1214 args);
1215 if (ceed->op_fallback_parent)
1216 return CeedErrorStore(ceed->op_fallback_parent, filename, line_no, func,
1217 err_code, format, args);
1218
1219 // Build message
1220 CeedInt len;
1220 int len;
1221 len = snprintf(ceed->err_msg, CEED_MAX_RESOURCE_LEN, "%s:%d in %s(): ",
1222 filename, line_no, func);
1223 // Using pointer to va_list for better FFI, but clang-tidy can't verify va_list is initalized
1224 // *INDENT-OFF*
1225 vsnprintf(ceed->err_msg + len, CEED_MAX_RESOURCE_LEN - len, format, *args); // NOLINT
1226 // *INDENT-ON*
1227 return err_code;
1228}

--- 131 unchanged lines hidden ---
1221 len = snprintf(ceed->err_msg, CEED_MAX_RESOURCE_LEN, "%s:%d in %s(): ",
1222 filename, line_no, func);
1223 // Using pointer to va_list for better FFI, but clang-tidy can't verify va_list is initalized
1224 // *INDENT-OFF*
1225 vsnprintf(ceed->err_msg + len, CEED_MAX_RESOURCE_LEN - len, format, *args); // NOLINT
1226 // *INDENT-ON*
1227 return err_code;
1228}

--- 131 unchanged lines hidden ---