Replace pvar usage with print_var
pvar is an abbreviation for print_var. For final code, print_var lends more
clarity.
Change-Id: Ibbb606ce10b2a1035eaf735c383758fb9a224149
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/bin/obmc_ser_num b/bin/obmc_ser_num
index bbf43ec..4269e42 100755
--- a/bin/obmc_ser_num
+++ b/bin/obmc_ser_num
@@ -122,7 +122,7 @@
verify=False)
if resp.json()['status'] != 'ok':
json = resp.json()
- print_error_report("http request failed:\n" + sprint_var(command, 1))
+ print_error_report("http request failed:\n" + sprint_var(command))
raise Exception("Login failed.\n")
command = http_prefix + "xyz/openbmc_project/inventory/system"
@@ -130,7 +130,7 @@
resp = session.get(command, verify=False)
json = resp.json()
if json['status'] != 'ok':
- print_error_report("http request failed:\n" + sprint_var(command, 1))
+ print_error_report("http request failed:\n" + sprint_var(command))
raise Exception("http request failed.\n")
try:
@@ -139,7 +139,7 @@
print_error_report("Failed to find 'SerialNumber' key in the" +
" following data:\n" + sprint_var(json))
return False
- pvar(mch_ser_num, 0, 0, 0)
+ print_var(mch_ser_num, 0, 0, 0)
return True
diff --git a/bin/validate_plug_ins.py b/bin/validate_plug_ins.py
index ba4cebb..809f17a 100755
--- a/bin/validate_plug_ins.py
+++ b/bin/validate_plug_ins.py
@@ -120,7 +120,7 @@
plug_in_packages_list = return_plug_in_packages_list(plug_in_dir_paths,
mch_class)
- qpvar(plug_in_packages_list)
+ qprint_var(plug_in_packages_list)
# As stated in the help text, this program must print the full paths of
# each selected plug in.