Exemplo n.º 1
0
static ssize_t store_control(struct device *d,
		struct device_attribute *attr, const char *buf, size_t count)
{
	int sec_debug_level = convert_debug_level_str(buf);

	if (sec_debug_level == 0)
		return -EINVAL;
	
	kernel_sec_set_debug_level(sec_debug_level); 

	return count;
}
static ssize_t debug_level_store(struct device *dev,
		struct device_attribute *attr, const char *buf, size_t size)
{
	int sec_debug_level = convert_debug_level_str(buf);

	if (sec_debug_level == 0)
		return -EINVAL;

	kernel_sec_set_debug_level(sec_debug_level);

	return size;

}
Exemplo n.º 3
0
static ssize_t debug_level_store(struct device *dev,
                                 struct device_attribute *attr, const char *buf, size_t size)
{
    int sec_debug_level = convert_debug_level_str(buf);

    if (sec_debug_level == 0)
        return -EINVAL;

#if defined(CONFIG_SEC_DEBUG)
    kernel_sec_set_debug_level(sec_debug_level);
#endif

    return size;

}