Skip to content

Commit

Permalink
simulator: fix format error
Browse files Browse the repository at this point in the history
Problem: 64-bit integer id is printed with %ld, causing
gcc7 format error.

Use %lld instead.
  • Loading branch information
garlick committed Mar 31, 2018
1 parent 76bf76c commit 731be95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulator/submitsrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ int schedule_next_job (flux_t *h, sim_state_t *sim_state)

// Update lwj.%jobid%'s state in the kvs to "submitted"
if (!(dir = job_kvsdir (h, new_jobid)))
log_err_exit ("kvs_get_dir (id=%lu)", new_jobid);
log_err_exit ("kvs_get_dir (id=%llu)", new_jobid);
job->kvs_dir = dir;
if (put_job_in_kvs (job, "submitted") < 0)
log_err_exit ("put_job_in_kvs");
Expand Down

0 comments on commit 731be95

Please sign in to comment.