Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 47186fb

Browse filesBrowse files
joyeecheungtargos
authored andcommitted
src: print string content better in BlobDeserializer
When it's a short string, print it inline, otherwise print it from a separate line. Also add the missing line breaks finally. PR-URL: #50960 Refs: nodejs/single-executable#68 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
1 parent 5a8af3d commit 47186fb
Copy full SHA for 47186fb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎src/blob_serializer_deserializer-inl.h‎

Copy file name to clipboardExpand all lines: src/blob_serializer_deserializer-inl.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,11 @@ std::string_view BlobDeserializer<Impl>::ReadStringView(StringLogMode mode) {
140140
Debug("ReadStringView(), length=%zu: ", length);
141141

142142
std::string_view result(sink.data() + read_total, length);
143-
Debug("%p, read %zu bytes\n", result.data(), result.size());
143+
Debug("%p, read %zu bytes", result.data(), result.size());
144144
if (mode == StringLogMode::kAddressAndContent) {
145-
Debug("%s", result);
145+
Debug(", content:%s%s", length > 32 ? "\n" : " ", result);
146146
}
147+
Debug("\n");
147148

148149
read_total += length;
149150
return result;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.