Commit 16a54d4e authored by Yang Guang's avatar Yang Guang Committed by Helge Deller
Browse files

fbcon: replace snprintf in show functions with sysfs_emit

parent d8bb92e7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3185,7 +3185,7 @@ static ssize_t show_rotate(struct device *device,
	rotate = fbcon_get_rotate(info);
err:
	console_unlock();
	return snprintf(buf, PAGE_SIZE, "%d\n", rotate);
	return sysfs_emit(buf, "%d\n", rotate);
}

static ssize_t show_cursor_blink(struct device *device,
@@ -3210,7 +3210,7 @@ static ssize_t show_cursor_blink(struct device *device,
	blink = delayed_work_pending(&ops->cursor_work);
err:
	console_unlock();
	return snprintf(buf, PAGE_SIZE, "%d\n", blink);
	return sysfs_emit(buf, "%d\n", blink);
}

static ssize_t store_cursor_blink(struct device *device,