Example #1
0
static ssize_t show_control(struct device *d,
		struct device_attribute *attr, char *buf)
{
	char buffer[7];
	convert_debug_level_int(kernel_sec_get_debug_level(), buffer);

	return sprintf(buf, "%s\n", buffer);
}
static ssize_t debug_level_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{
	char buffer[7];
	convert_debug_level_int(kernel_sec_get_debug_level(), buffer);

	return snprintf(buf, sizeof(buffer)+1, "%s\n", buffer);

}
Example #3
0
static ssize_t debug_level_show(struct device *dev,
                                struct device_attribute *attr, char *buf)
{
    char buffer[7];
#if defined(CONFIG_SEC_DEBUG)
    convert_debug_level_int(kernel_sec_get_debug_level(), buffer);
#endif
    return snprintf(buf, sizeof(buffer)+1, "%s\n", buffer);

}