summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_ir.cc
diff options
context:
space:
mode:
authorAhmad Alawneh <[email protected]>2023-06-12 17:31:05 -0400
committerGitHub <[email protected]>2023-06-12 17:31:05 -0400
commitb471b3481b2399222ffd9ee0f007628834e68767 (patch)
tree267f112f3608ce7f4caa898250a3eb24a90814b6 /src/cuda-sim/ptx_ir.cc
parent73db3f79467cb918c6ac11796268e2492c69b101 (diff)
fixing bunch of formatting warnings (#53)
* fixing bunch of formating warrnings * remove unintialized and unused results warnnings * revert the changes , as it doenst fix the warning --------- Co-authored-by: Fangjia Shen <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_ir.cc')
-rw-r--r--src/cuda-sim/ptx_ir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc
index 029cf73..f25f1d5 100644
--- a/src/cuda-sim/ptx_ir.cc
+++ b/src/cuda-sim/ptx_ir.cc
@@ -1470,7 +1470,7 @@ std::string ptx_instruction::to_string() const {
unsigned used_bytes = 0;
if (!is_label()) {
used_bytes +=
- snprintf(buf + used_bytes, STR_SIZE - used_bytes, " PC=0x%03x ", m_PC);
+ snprintf(buf + used_bytes, STR_SIZE - used_bytes, " PC=0x%03llx ", m_PC);
} else {
used_bytes +=
snprintf(buf + used_bytes, STR_SIZE - used_bytes, " ");