Skip to content

Commit

Permalink
fsm,ifup: cleanup of double name in ni_ifworker_fail()
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jun 12, 2015
1 parent a7134e0 commit 92705b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/ifup.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ ni_ifup_start_policy(ni_ifworker_t *w)

error:
if (!rv)
ni_ifworker_fail(w, "%s: unable to apply configuration to nanny", w->name);
ni_ifworker_fail(w, "unable to apply configuration to nanny");
xml_node_free(policy);
return rv;
}
Expand Down
3 changes: 1 addition & 2 deletions src/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4486,8 +4486,7 @@ ni_fsm_schedule(ni_fsm_t *fsm)
if (!w->failed) {
/* The fsm action should really have marked this
* as a failure. shame on the lazy programmer. */
ni_ifworker_fail(w, "%s: failed to transition from %s to %s",
w->name,
ni_ifworker_fail(w, "failed to transition from %s to %s",
ni_ifworker_state_name(prev_state),
ni_ifworker_state_name(action->next_state));
}
Expand Down

0 comments on commit 92705b2

Please sign in to comment.