Skip to content

Commit

Permalink
ovn-nbctl: Use "ctx->output" instead of printf for list ACLs.
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Pettit <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
Acked-by: Ryan Moats <[email protected]>
  • Loading branch information
justinpettit committed Jun 10, 2016
1 parent 634f6c2 commit 9e89174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ovn/utilities/ovn-nbctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,9 @@ nbctl_acl_list(struct ctl_context *ctx)

for (i = 0; i < lswitch->n_acls; i++) {
const struct nbrec_acl *acl = acls[i];
printf("%10s %5"PRId64" (%s) %s%s\n", acl->direction, acl->priority,
acl->match, acl->action, acl->log ? " log" : "");
ds_put_format(&ctx->output, "%10s %5"PRId64" (%s) %s%s\n",
acl->direction, acl->priority,
acl->match, acl->action, acl->log ? " log" : "");
}

free(acls);
Expand Down

0 comments on commit 9e89174

Please sign in to comment.