Skip to content
Permalink
Browse files

executor: add newline in debug call

debug does not add newlines.
  • Loading branch information...
dvyukov committed Feb 27, 2019
1 parent 083cfd0 commit 4c8feb4e71f2a1f01a5d548c519b095a3d706bc8
Showing with 2 additions and 2 deletions.
  1. +1 −1 executor/common_fuchsia.h
  2. +1 −1 pkg/csource/generated.go
@@ -177,7 +177,7 @@ long syz_mmap(size_t addr, size_t size)
zx_handle_t vmo;
status = zx_vmo_create(size, 0, &vmo);
if (status != ZX_OK) {
debug("zx_vmo_create failed with: %d", status);
debug("zx_vmo_create failed with: %d\n", status);
return status;
}
status = zx_vmo_replace_as_executable(vmo, ZX_HANDLE_INVALID, &vmo);
@@ -913,7 +913,7 @@ long syz_mmap(size_t addr, size_t size)
zx_handle_t vmo;
status = zx_vmo_create(size, 0, &vmo);
if (status != ZX_OK) {
debug("zx_vmo_create failed with: %d", status);
debug("zx_vmo_create failed with: %d\n", status);
return status;
}
status = zx_vmo_replace_as_executable(vmo, ZX_HANDLE_INVALID, &vmo);

2 comments on commit 4c8feb4

@dvyukov

This comment has been minimized.

Copy link
Collaborator Author

replied Feb 27, 2019

@flowerhack FYI
debug is sometimes used to incrementally build more complex output from parts, so it does not add \n by itself.

@flowerhack

This comment has been minimized.

Copy link
Member

replied Feb 27, 2019

ah gotcha, thanks for the notif

Please sign in to comment.
You can’t perform that action at this time.