Skip to content

Commit

Permalink
retrace: Restore stream formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Mar 26, 2015
1 parent bd1af84 commit dbfe0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions retrace/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ escapeUnicodeString(std::ostream &os, const char *str) {
os << (unsigned char)c;
} else {
// unicode
os << "\\u" << std::setfill('0') << std::hex << std::setw(4) << (unsigned)c;
os << std::dec;
os << "\\u" << std::hex << std::setfill('0') << std::setw(4) << (unsigned)c << std::setfill(' ') << std::dec;
}
} while (src);

Expand Down
2 changes: 1 addition & 1 deletion retrace/retrace_swizzle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ delObj(trace::Value &value) {
unsigned long long address = value.toUIntPtr();
_obj_map.erase(address);
if (retrace::verbosity >= 2) {
std::cout << std::hex << "obj 0x" << address << " del\n";
std::cout << std::hex << "obj 0x" << address << std::dec << " del\n";
}
}

Expand Down

0 comments on commit dbfe0c4

Please sign in to comment.