Skip to content
Snippets Groups Projects
Commit c6856a51 authored by Jon Bringhurst's avatar Jon Bringhurst
Browse files

Fixed printf format strings in cases where the node count (an unsigned int)...

Fixed printf format strings in cases where the node count (an unsigned int) was being treated as an unsigned short.
parent 8a3d505e
No related branches found
No related tags found
No related merge requests found
......@@ -1187,7 +1187,7 @@ env_array_for_step(char ***dest,
}
env_array_overwrite_fmt(dest, "SLURM_STEP_NUM_NODES",
"%hu", node_cnt);
"%u", node_cnt);
env_array_overwrite_fmt(dest, "SLURM_STEP_NUM_TASKS",
"%u", step->step_layout->task_cnt);
env_array_overwrite_fmt(dest, "SLURM_STEP_TASKS_PER_NODE", "%s", tpn);
......@@ -1211,7 +1211,7 @@ env_array_for_step(char ***dest,
env_array_overwrite_fmt(dest, "SLURM_STEPID", "%u", step->job_step_id);
if (!preserve_env) {
env_array_overwrite_fmt(dest, "SLURM_NNODES",
"%hu", node_cnt);
"%u", node_cnt);
env_array_overwrite_fmt(dest, "SLURM_NTASKS", "%u",
step->step_layout->task_cnt);
/* keep around for old scripts */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment