diff options
author | Jerry Ge <jerry.ge@arm.com> | 2023-07-19 23:08:16 +0000 |
---|---|---|
committer | Jerry Ge <jerry.ge@arm.com> | 2023-07-25 22:49:17 +0000 |
commit | 9c9c8dafe8f9a32bd70aee268cd537b93865a3ba (patch) | |
tree | e94fc471261b9f72bef86033fbc76022f55d5de8 /reference_model/src/func_debug.cc | |
parent | c1e13432b4a218781afd6b0171d4afff11730433 (diff) | |
download | reference_model-9c9c8dafe8f9a32bd70aee268cd537b93865a3ba.tar.gz |
Run clang-format and update copyright
- Also added run clang-format to pre-commit runs
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: I4e59ac0afbaa30dce0773aa63d92a1a3b119e2f3
Diffstat (limited to 'reference_model/src/func_debug.cc')
-rw-r--r-- | reference_model/src/func_debug.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/reference_model/src/func_debug.cc b/reference_model/src/func_debug.cc index 745d076..7979c89 100644 --- a/reference_model/src/func_debug.cc +++ b/reference_model/src/func_debug.cc @@ -1,5 +1,5 @@ -// Copyright (c) 2020, ARM Limited. +// Copyright (c) 2020-2023, ARM Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ #include <ctype.h> #include <signal.h> +#include <sstream> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> -#include <sstream> #ifndef _MSC_VER #include <execinfo.h> @@ -164,7 +164,7 @@ int func_debug_t::init_debug(uint64_t inst_id) set_verbosity(DEBUG_VERB_NONE); set_inst_mask(DEBUG_INST_ALL); func_debug_file = stderr; - this->inst_id = inst_id; + this->inst_id = inst_id; return 0; } @@ -268,7 +268,7 @@ void func_debug_t::set_inst_mask(const uint64_t mask) } std::vector<std::pair<std::string, int>> debug_str_table = { -#define DEBUG_MODE(NAME, BIT) {#NAME, DEBUG_##NAME}, +#define DEBUG_MODE(NAME, BIT) { #NAME, DEBUG_##NAME }, #include "debug_modes.def" #undef DEBUG_MODE }; @@ -327,7 +327,8 @@ void func_debug_warning( std::string func_debug_t::get_debug_mask_help_string() { std::string rval = "Set debug mask. Valid values are: "; - for (auto& mask : debug_str_table) { + for (auto& mask : debug_str_table) + { rval += mask.first + " "; } rval += "ALL"; |