Skip to content

Commit

Permalink
Fix faultinj build error after spdlog/fmt upgrade (#1608)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lowe <[email protected]>
  • Loading branch information
jlowe authored Dec 1, 2023
1 parent ddc2410 commit 9c3c7a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main/cpp/faultinj/faultinj.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, NVIDIA CORPORATION.
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,6 +31,9 @@
#include <sys/inotify.h>
#include <sys/time.h>

// Format enums for logging
auto format_as(CUpti_CallbackDomain domain) { return fmt::underlying(domain); }

namespace {

#define CUPTI_CALL(call) \
Expand Down Expand Up @@ -392,7 +395,7 @@ void readFaultInjectorConfig(void)
std::srand(seed);

const spdlog::level::level_enum logLevelEnum = static_cast<spdlog::level::level_enum>(logLevel);
spdlog::info("changed log level to {}", logLevelEnum);
spdlog::info("changed log level to {}", logLevel);
spdlog::set_level(logLevelEnum);
traceConfig(globalControl.configRoot);

Expand Down

0 comments on commit 9c3c7a6

Please sign in to comment.