Python: Tweak with python3 compatibility

Fixes sysgen's python code errors generated during build.
On python2 environment it's ok but *not* on python3.

Change-Id: I4a042c5d5203e546b65540f7020ae75677d102f8
Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
Arkadiusz Lichwa 2015-06-16 11:13:26 +02:00 committed by Anas Nashif
commit d7e239c6c2

View file

@ -145,7 +145,7 @@ def write_file(filename, contents):
def sysgen_error(msg):
print "\n*** sysgen error: " + msg + "\n"
print("\n*** sysgen error: " + msg + "\n")
sys.exit(1)
@ -472,7 +472,7 @@ def kernel_main_c_priorities():
# priority queue bit map (indicates which priority queues are non-empty;
# initially only the idle task's queue has a runnable task)
num_bit_maps = ((num_prios + 31) / 32)
num_bit_maps = ((num_prios + 31) // 32)
kernel_main_c_out("\n" +
"uint32_t _k_task_priority_bitmap[%d] = {" % (num_bit_maps))