static ssize_t hub_name_show(struct uv_bios_hub_info *hub_info, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "%s\n", hub_info->name);
+       return sysfs_emit(buf, "%s\n", hub_info->name);
 }
 
 static ssize_t hub_location_show(struct uv_bios_hub_info *hub_info, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "%s\n", hub_info->location);
+       return sysfs_emit(buf, "%s\n", hub_info->location);
 }
 
 static ssize_t hub_partition_show(struct uv_bios_hub_info *hub_info, char *buf)
 
 static ssize_t uv_pci_type_show(struct uv_pci_top_obj *top_obj, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "%s\n", top_obj->type);
+       return sysfs_emit(buf, "%s\n", top_obj->type);
 }
 
 static ssize_t uv_pci_location_show(struct uv_pci_top_obj *top_obj, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "%s\n", top_obj->location);
+       return sysfs_emit(buf, "%s\n", top_obj->location);
 }
 
 static ssize_t uv_pci_iio_stack_show(struct uv_pci_top_obj *top_obj, char *buf)
 
 static ssize_t uv_pci_ppb_addr_show(struct uv_pci_top_obj *top_obj, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "%s\n", top_obj->ppb_addr);
+       return sysfs_emit(buf, "%s\n", top_obj->ppb_addr);
 }
 
 static ssize_t uv_pci_slot_show(struct uv_pci_top_obj *top_obj, char *buf)
 static ssize_t uv_type_show(struct kobject *kobj,
                        struct kobj_attribute *attr, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "%s\n", uv_type_string());
+       return sysfs_emit(buf, "%s\n", uv_type_string());
 }
 
 static ssize_t uv_archtype_show(struct kobject *kobj,
 static ssize_t uv_hub_type_show(struct kobject *kobj,
                        struct kobj_attribute *attr, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "0x%x\n", uv_hub_type());
+       return sysfs_emit(buf, "0x%x\n", uv_hub_type());
 }
 
 static ssize_t uv_hubless_show(struct kobject *kobj,
                        struct kobj_attribute *attr, char *buf)
 {
-       return scnprintf(buf, PAGE_SIZE, "0x%x\n", uv_get_hubless_system());
+       return sysfs_emit(buf, "0x%x\n", uv_get_hubless_system());
 }
 
 static struct kobj_attribute partition_id_attr =