diff options
| author | Ahmad Alawneh <[email protected]> | 2023-06-12 17:31:05 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-12 17:31:05 -0400 |
| commit | b471b3481b2399222ffd9ee0f007628834e68767 (patch) | |
| tree | 267f112f3608ce7f4caa898250a3eb24a90814b6 /cuobjdump_to_ptxplus | |
| parent | 73db3f79467cb918c6ac11796268e2492c69b101 (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 'cuobjdump_to_ptxplus')
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdumpInstList.cc | 2 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cuobjdump_to_ptxplus/cuobjdumpInstList.cc b/cuobjdump_to_ptxplus/cuobjdumpInstList.cc index 32834c7..d42e59e 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInstList.cc +++ b/cuobjdump_to_ptxplus/cuobjdumpInstList.cc @@ -505,7 +505,7 @@ std::string cuobjdumpInstList::parseCuobjdumpRegister(std::string reg, bool lo, } else { output("ERROR: unknown register type.\n"); printf("\nERROR: unknown register type: "); - printf(reg.c_str()); + printf("%s",reg.c_str()); printf("\n"); assert(0); } diff --git a/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc b/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc index 82dcb7c..5c6fdcd 100644 --- a/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc +++ b/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc @@ -54,7 +54,7 @@ FILE *ptxplus_out; void output(const char * text) { //printf(text); - fprintf(ptxplus_out, text); + fprintf(ptxplus_out,"%s", text); } void output(const std::string text) { |
