aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/transport
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-06-13 19:10:15 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-06-13 19:10:15 -0700
commit289dcb1b68c236d11a8f5a89827e95af94a7df12 (patch)
tree16a58670993b47c2e373512fa311a3ec35acfa64 /src/core/ext/transport
parentbcf5023bb6ad3ddeef99b9a703b2fa245450a77a (diff)
Rename gpr_strpad as gpr_leftpad
Diffstat (limited to 'src/core/ext/transport')
-rw-r--r--src/core/ext/transport/chttp2/transport/chttp2_transport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c
index 6dbe9b70f3..6e8640f1b3 100644
--- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c
+++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c
@@ -2024,7 +2024,7 @@ static char *format_flowctl_context_var(const char *context, const char *var,
if (context == NULL) {
*scope = NULL;
gpr_asprintf(&buf, "%s(%" PRId64 ")", var, val);
- result = gpr_strpad(buf, ' ', 40);
+ result = gpr_leftpad(buf, ' ', 40);
gpr_free(buf);
return result;
}
@@ -2037,7 +2037,7 @@ static char *format_flowctl_context_var(const char *context, const char *var,
gpr_free(tmp);
}
gpr_asprintf(&buf, "%s.%s(%" PRId64 ")", underscore_pos + 1, var, val);
- result = gpr_strpad(buf, ' ', 40);
+ result = gpr_leftpad(buf, ' ', 40);
gpr_free(buf);
return result;
}
@@ -2068,8 +2068,8 @@ void grpc_chttp2_flowctl_trace(const char *file, int line, const char *phase,
char *clisvr = is_client ? "client" : "server";
char *prefix;
- tmp_phase = gpr_strpad(phase, ' ', 8);
- tmp_scope1 = gpr_strpad(scope1, ' ', 11);
+ tmp_phase = gpr_leftpad(phase, ' ', 8);
+ tmp_scope1 = gpr_leftpad(scope1, ' ', 11);
gpr_asprintf(&prefix, "FLOW %s: %s %s ", phase, clisvr, scope1);
gpr_free(tmp_phase);
gpr_free(tmp_scope1);