aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/transport/chttp2/stream_encoder_test.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-08 07:44:54 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-08 07:44:54 -0700
commit98d60fcb9adbf3379ddf3595f5a5de8289415f92 (patch)
treeae9101c565f64fcbcb4eb8cd7b5d3e3bdb5eb720 /test/core/transport/chttp2/stream_encoder_test.c
parentd9b6fcfee4cb986f148762a4a7d0794de9b3ba62 (diff)
parent3b685b744818ec73580aff961f85c22b11e61ab0 (diff)
Merge github.com:grpc/grpc into hosts-need-names-too
Diffstat (limited to 'test/core/transport/chttp2/stream_encoder_test.c')
-rw-r--r--test/core/transport/chttp2/stream_encoder_test.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/core/transport/chttp2/stream_encoder_test.c b/test/core/transport/chttp2/stream_encoder_test.c
index bf70d43e78..6f2ea274fe 100644
--- a/test/core/transport/chttp2/stream_encoder_test.c
+++ b/test/core/transport/chttp2/stream_encoder_test.c
@@ -85,12 +85,8 @@ static void verify_sopb(size_t window_available, int eof,
grpc_sopb_destroy(&encops);
if (0 != gpr_slice_cmp(merged, expect)) {
- char *expect_str =
- gpr_hexdump((char *)GPR_SLICE_START_PTR(expect),
- GPR_SLICE_LENGTH(expect), GPR_HEXDUMP_PLAINTEXT);
- char *got_str =
- gpr_hexdump((char *)GPR_SLICE_START_PTR(merged),
- GPR_SLICE_LENGTH(merged), GPR_HEXDUMP_PLAINTEXT);
+ char *expect_str = gpr_dump_slice(expect, GPR_DUMP_HEX | GPR_DUMP_ASCII);
+ char *got_str = gpr_dump_slice(merged, GPR_DUMP_HEX | GPR_DUMP_ASCII);
gpr_log(GPR_ERROR, "mismatched output for %s", expected);
gpr_log(GPR_ERROR, "EXPECT: %s", expect_str);
gpr_log(GPR_ERROR, "GOT: %s", got_str);