sprint_varx indent, col1_width, fmt, delim, etc.
sprint_varx indent, col1_width, fmt, delim, etc.

- sprint_varx():
  - Changes to arguments:
    - loc_col1_indent renamed to indent.
    - loc_col1_width renamed to col1_width.
    - Replaced hex arg with fmt arg.  Made code changes to implement the
      following fmt options:
       - hexa
       - octal
       - binary
       - blank
       - terse
       - quote_keys
       - show_type
      Also added support for the fmt arg in list form.
    - Added support for delim arg.
    - Did some code cleanup and optimization.

- General cleanup of code:
  - Fixed spelling or wording errors in documentation.
  - Changed "Description of arguments" to "Description of argument(s)".
  - Changed informal use of "I" and "you" in documentation.

- Global value changes:
  - col1_indent renamed to dft_indent.
  - col1_width renamed to dft_col1_width.

- Changed is_dict() to return a code indicating the type of dictionary (vs
  simply returning 1).  Created constant functions to be used for the various
  dictionary types.

- get_int_types():  New function to help clean up sprint_varx implementation.

- get_string_types(): New function to help clean up sprint_varx implementation.

- New valid_fmts(), create_fmt_definition(), list_pop() and parse_fmt() to
  assist sprint_varx in processing new fmt argument.

- sprint_var(): Changed from hard-coding all arguments to using *args and
  **kwargs.

- sprint_vars(): Added **kwargs to allow callers to specify named parms on
  calls.  Then removed support for positional values like indent and
  col1_width.

- Changed print_var calls to use new arg names and new fmt values.

- Switched from print_varx to print_var where possible.

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

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