openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/sysfsutils/2.1.0-r5/sysfsutils-2.1.0/cmd/systool.c
static void show_device_parent(struct sysfs_device* device, int level)
{
    struct sysfs_device* parent;

    parent = sysfs_get_device_parent(device);
    if (parent)
    {
        fprintf(stdout, "\n");
        indent(level);
        fprintf(stdout, "Device \"%s\"'s parent\n", device->name);
        show_device(parent, (level + 2));
    }
}
/**
 * show_device_parent: prints device's parent (if present)
 * @device: sysfs_device whose parent information is needed
 */
prints device's parent (if present)
@device: sysfs_device whose parent information is needed
prints device ' s parent ( if present ) @device : sysfs_device whose parent information is needed
static void show_device_parent(struct sysfs_device* device, int level)
{
    struct sysfs_device* parent;
    parent = sysfs_get_device_parent(device);
    if (parent)
    {
        fprintf(stdout, "\n");
        indent(level);
        fprintf(stdout, "Device \"%s\"'s parent\n", device->name);
        show_device(parent, (level + 2));
    }
}
static void show_device_parent ( struct sysfs_device * device , int level ) { struct sysfs_device * parent ; parent = sysfs_get_device_parent ( device ) ; if ( parent ) { fprintf ( stdout , " \n " ) ; indent ( level ) ; fprintf ( stdout , " \" \" \n " , device -> name ) ; show_device ( parent , ( level + 2 ) ) ; } }
show_device_parent: prints device's parent (if present)
 @device: sysfs_device whose parent information is needed
show_device_parent : prints device ' s parent ( if present ) @device : sysfs_device whose parent information is needed