Skip to content

Commit 3375c8d

Browse files
committed
fix formatting, add git info
1 parent e8d0914 commit 3375c8d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

include/nbl/video/ILogicalDevice.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
#include "nbl/video/CThreadSafeQueueAdapter.h"
1515
#include "nbl/video/CJITIncludeLoader.h"
1616

17+
#include "git_info.h"
18+
1719
#define LOG_FUNCTION m_logger.log
18-
#define LOG_ERROR(FORMAT, ...) LOG_FUNCTION("FORMAT [%s - %s:%d]", nbl::system::ILogger::ELL_ERROR, __VA_ARGS__, __FUNCTION__, __FILE__, __LINE__);
20+
#define LOG_ERROR(FORMAT, ...) LOG_FUNCTION(FORMAT" [%s][%s - %s:%d]", nbl::system::ILogger::ELL_ERROR, __VA_ARGS__, nbl::gtml::nabla_git_info.commitShortHash , __FUNCTION__, __FILE__, __LINE__);
1921

2022
namespace nbl::video
2123
{

src/nbl/video/ILogicalDevice.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#include "nbl/video/IPhysicalDevice.h"
22

3+
#include "git_info.h"
4+
35
using namespace nbl;
46
using namespace nbl::video;
57

68

79
#define LOG_FUNCTION m_logger.log
8-
#define LOG_ERROR(FORMAT, ...) LOG_FUNCTION("FORMAT [%s - %s:%d]", nbl::system::ILogger::ELL_ERROR, __VA_ARGS__, __FUNCTION__, __FILE__, __LINE__);
10+
#define LOG_ERROR(FORMAT, ...) LOG_FUNCTION(FORMAT" [%s][%s - %s:%d]", nbl::system::ILogger::ELL_ERROR, __VA_ARGS__, nbl::gtml::nabla_git_info.commitShortHash , __FUNCTION__, __FILE__, __LINE__);
911

1012
ILogicalDevice::ILogicalDevice(core::smart_refctd_ptr<const IAPIConnection>&& api, const IPhysicalDevice* const physicalDevice, const SCreationParams& params, const bool runningInRenderdoc)
1113
: m_api(api), m_physicalDevice(physicalDevice), m_enabledFeatures(params.featuresToEnable), m_compilerSet(params.compilerSet),

src/nbl/video/IQueue.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
#include "nbl/video/ILogicalDevice.h"
44
#include "nbl/video/TimelineEventHandlers.h"
55

6+
#include "git_info.h"
7+
68
#define LOG_FUNCTION logger->log
7-
#define LOG(SEVERITY, FORMAT, ...) LOG_FUNCTION("FORMAT [%s - %s:%d]", SEVERITY, __VA_ARGS__, __FUNCTION__, __FILE__, __LINE__);
9+
#define LOG(SEVERITY, FORMAT, ...) LOG_FUNCTION(FORMAT" [%s][%s - %s:%d]", SEVERITY, __VA_ARGS__, nbl::gtml::nabla_git_info.commitShortHash , __FUNCTION__, __FILE__, __LINE__);
810
#define LOG_ERROR(FORMAT, ...) LOG(nbl::system::ILogger::ELL_ERROR, FORMAT, __VA_ARGS__)
911

1012
namespace nbl::video

0 commit comments

Comments
 (0)