Skip to content

Commit 1fdd326

Browse files
Enhance bind log
Change-Id: I202d4f65b71aeda18b20312ef05c910c0c937d19 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
1 parent df2e76f commit 1fdd326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/source/os_interface/linux/drm_buffer_object.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void BufferObject::bind(OsContext *osContext, uint32_t vmHandleId) {
150150
if (!this->bindInfo[contextId][vmHandleId]) {
151151
auto ret = this->drm->bindBufferObject(osContext, vmHandleId, this);
152152
auto err = this->drm->getErrno();
153-
PRINT_DEBUG_STRING(DebugManager.flags.PrintBOBindingResult.get(), stderr, "bind BO-%d, range: %llx - %llx, size: %lld, result: %d, errno: %d(%s)\n", this->handle, this->gpuAddress, ptrOffset(this->gpuAddress, this->size), this->size, ret, err, strerror(err));
153+
PRINT_DEBUG_STRING(DebugManager.flags.PrintBOBindingResult.get(), stderr, "bind BO-%d to VM %u, range: %llx - %llx, size: %lld, result: %d, errno: %d(%s)\n", this->handle, vmHandleId, this->gpuAddress, ptrOffset(this->gpuAddress, this->size), this->size, ret, err, strerror(err));
154154
UNRECOVERABLE_IF(ret != 0);
155155
this->bindInfo[contextId][vmHandleId] = true;
156156
}
@@ -161,7 +161,7 @@ void BufferObject::unbind(OsContext *osContext, uint32_t vmHandleId) {
161161
if (this->bindInfo[contextId][vmHandleId]) {
162162
auto ret = this->drm->unbindBufferObject(osContext, vmHandleId, this);
163163
auto err = this->drm->getErrno();
164-
PRINT_DEBUG_STRING(DebugManager.flags.PrintBOBindingResult.get(), stderr, "unbind BO-%d, range: %llx - %llx, size: %lld, result: %d, errno: %d(%s)\n", this->handle, this->gpuAddress, ptrOffset(this->gpuAddress, this->size), this->size, ret, err, strerror(err));
164+
PRINT_DEBUG_STRING(DebugManager.flags.PrintBOBindingResult.get(), stderr, "unbind BO-%d from VM %u, range: %llx - %llx, size: %lld, result: %d, errno: %d(%s)\n", this->handle, vmHandleId, this->gpuAddress, ptrOffset(this->gpuAddress, this->size), this->size, ret, err, strerror(err));
165165
UNRECOVERABLE_IF(ret != 0);
166166
this->bindInfo[contextId][vmHandleId] = false;
167167
}

0 commit comments

Comments
 (0)