qprint/dprint_func_templates to use get_stack_var
qprint/dprint_func_templates to use get_stack_var

Change qprint_func_template and dprint_func_template to use get_stack_var to
obtain quiet and debug variable values.

This means that they will search upward in the stack for the first such
qualifying variable.

In other words, when calling qprint functions, the local value of quiet will
be used.  If there is no local value, the caller's local value of quiet will
be used and so on, all the way up the stack.

Change-Id: I275e483d8baf22b1acfaa64442e051bb53fdd518
Signed-off-by: Michael Walsh <10404802c7de463f402c4a18638106ca1b12ef61@us.ibm.com>

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation