Skip to content

Commit

Permalink
setsched.c: fix printf compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jf6b committed Oct 28, 2015
1 parent d5d5ccc commit bbf0abe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setsched.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ static int _setsched_opt_process (int val, const char *optarg, int remote)

if (strncmp ("no", optarg, 2) == 0) {
setsched_default=0;
xdebug("setsched: disabled on user request",optarg);
xdebug("setsched: disabled on user request");
}
else if (strncmp ("yes", optarg, 3) == 0) {
setsched_default=1;
xdebug("setsched: enabled on user request",optarg);
xdebug("setsched: enabled on user request");
}
else if (strncmp ("auto", optarg, 4) != 0) {
xerror ("setsched: bad parameter %s", optarg);
Expand Down Expand Up @@ -208,13 +208,13 @@ int slurm_spank_task_post_fork (spank_t sp, int ac, char **av)
status = sched_setscheduler(pid, pol, &spar);
if (status < 0) {
xerror("setsched: unable to set scheduling "
"policy of task%d pid %ld : %s",
"policy of task%d pid %d : %s",
taskid, pid,strerror(errno));
}
else
xinfo("setsched: "
"scheduling policy of task%d pid %ld is "
"now %ld (prio=%d)",
"scheduling policy of task%d pid %d is "
"now %d (prio=%d)",
taskid, pid, pol, setsched_prio);
}

Expand Down

0 comments on commit bbf0abe

Please sign in to comment.