[Libre-soc-bugs] [Bug 1195] removing some f-strings and misleading log messages
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sat Oct 21 00:37:22 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1195
--- Comment #3 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
253 line_bytes = mem_lines[line_index]
254 line_str = f"0x{line_addr:08X}:"
255 for col_chunk in range(0, line_size,
256 column_chunk_size):
257 line_str += " "
258 for i in range(column_chunk_size):
259 line_str += f" {line_bytes[col_chunk + i]:02X}"
260 line_str += " |"
261 for i in range(line_size):
262 if 0x20 <= line_bytes[i] <= 0x7E:
263 line_str += chr(line_bytes[i])
264 else:
265 line_str += "."
266 line_str += "|"
267 lines.append(line_str)
268 lines = "\n".join(lines)
269 log(f"\n{name}:\n{lines}\n", kind=kind)
270
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list