/* Returns number of bytes read or error code, as appropriate  */
static ssize_t smk_read_logging(struct file *filp, char __user *buf, size_t count, loff_t *ppos)
/* Returns number of bytes read or error code, as appropriate  */
static ssize_t smk_read_logging(struct file *filp, char __user *buf, size_t count, loff_t *ppos)
{
	char temp[32];
	ssize_t rc;
	if (*ppos != 0)
		return 0;
	sprintf(temp, "%d\n", log_policy);
	rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
	return rc;
}