From 5e3e45160adc65b2452b331cbfc3bfdcd95b8399 Mon Sep 17 00:00:00 2001
From: jette <jette@schedmd.com>
Date: Thu, 4 Jul 2013 17:33:11 -0700
Subject: [PATCH] Correct srun verbose logging when int > 32-bits long

---
 src/srun/libsrun/opt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/srun/libsrun/opt.c b/src/srun/libsrun/opt.c
index 84a49aada27..96a8a21dab5 100644
--- a/src/srun/libsrun/opt.c
+++ b/src/srun/libsrun/opt.c
@@ -2224,16 +2224,16 @@ static char *print_constraints()
 {
 	char *buf = xstrdup("");
 
-	if (opt.pn_min_cpus > 0)
+	if (opt.pn_min_cpus != NO_VAL)
 		xstrfmtcat(buf, "mincpus-per-node=%d ", opt.pn_min_cpus);
 
-	if (opt.pn_min_memory > 0)
+	if (opt.pn_min_memory != NO_VAL)
 		xstrfmtcat(buf, "mem-per-node=%dM ", opt.pn_min_memory);
 
-	if (opt.mem_per_cpu > 0)
+	if (opt.mem_per_cpu != NO_VAL)
 		xstrfmtcat(buf, "mem-per-cpu=%dM ", opt.mem_per_cpu);
 
-	if (opt.pn_min_tmp_disk > 0)
+	if (opt.pn_min_tmp_disk != NO_VAL)
 		xstrfmtcat(buf, "tmp-per-node=%ld ", opt.pn_min_tmp_disk);
 
 	if (opt.contiguous == true)
-- 
GitLab