When a job is dependent on other jobs, a fake lock is created whose
pending entry contains a list of job ids waiting on the job. gnt-debug
locks did not expect the job ids to be ints, crashing when encountering
them. This patch fixes the situation by forcing a string cast.
Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Jose A. Lopes <jabolopes@google.com>
"""Format pending acquires.
"""
- return utils.CommaJoin("%s:%s" % (mode, ",".join(threads))
+ return utils.CommaJoin("%s:%s" % (mode, ",".join(map(str, threads)))
for mode, threads in value)
# Format raw values