func (r *Subresource) String() string {
	devaddr := r.Get("device_address").(string)
	if devaddr == "" {
		devaddr = "<new device>"
	}
	return fmt.Sprintf("%s (key %d at %s)", r.Addr(), r.Get("key").(int), devaddr)
}
func (r *Subresource) String() string {
	devaddr := r.Get("device_address").(string)
	if devaddr == "" {
		devaddr = "<new device>"
	}
	return fmt.Sprintf("%s (key %d at %s)", r.Addr(), r.Get("key").(int), devaddr)
}
func ( r * Subresource ) String ( ) string { devaddr := r . Get ( " " ) . ( string ) if devaddr == " " { devaddr = " " } return fmt . Sprintf ( " " , r . Addr ( ) , r . Get ( " " ) . ( int ) , devaddr ) }
// String prints out the device sub-resource's information including the ID at
// time of instantiation, the short name of the disk, and the current device
// key and address.
String prints out the device sub - resource s information including the ID at time of instantiation the short name of the disk and the current device key and address .