scripts/genconfig.py: fix format specs for older Python
Python versions older than 2.7 require numbered format specifiers. Change-Id: I74dd204836c202a79c31c08f0096c31fcb325385 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
e1b607d07b
commit
f348a09b50
@ -32,9 +32,9 @@ with open('CONFIG') as f:
|
||||
val = args[var]
|
||||
if default.lower() == 'y' or default.lower() == 'n':
|
||||
if val.lower() == 'y':
|
||||
print "#define SPDK_{} 1".format(var)
|
||||
print "#define SPDK_{0} 1".format(var)
|
||||
else:
|
||||
print "#undef SPDK_{}".format(var)
|
||||
print "#undef SPDK_{0}".format(var)
|
||||
else:
|
||||
strval = val.replace('"', '\"')
|
||||
print "#define SPDK_{} \"{}\"".format(var, strval)
|
||||
print "#define SPDK_{0} \"{1}\"".format(var, strval)
|
||||
|
Loading…
x
Reference in New Issue
Block a user