Stringify a given topology object into a human-readable form. Note:
This function is deprecated in favor of hwloc_obj_type_snprintf() and hwloc_obj_attr_snprintf() since it is not very flexible and only prints physical/OS indexes.
Fill string string up to size characters with the description of topology object obj in topology topology.
If verbose is set, a longer description is used. Otherwise a short description is used.
indexprefix is used to prefix the os_index attribute number of the object in the description. If NULL, the # character is used.
If size is 0, string may safely be NULL.
Returns:
the number of character that were actually written if not truncating, or that would have been written (not including the ending \0).
int hwloc_obj_type_snprintf (char *restrictstring, size_tsize, hwloc_obj_tobj, intverbose)
Stringify the type of a given topology object into a human-readable form. It differs from hwloc_obj_type_string() because it prints type attributes such as cache depth.
If size is 0, string may safely be NULL.
Returns:
the number of character that were actually written if not truncating, or that would have been written (not including the ending \0).