You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
kernel_samsung_sm7125/security/dsms/dsms_debug.c

29 lines
759 B

/*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*/
#include <linux/dsms.h>
#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <linux/types.h>
#include "dsms_debug.h"
#ifdef DSMS_DEBUG_ENABLE
#define MAX_ALLOWED_DETAIL_LENGTH 1024
void dsms_debug_message(const char *feature_code, const char *detail,
int64_t value)
{
size_t len = strnlen(detail, MAX_ALLOWED_DETAIL_LENGTH);
printk(DSMS_DEBUG_TAG "{'%s', '%s' (%zu bytes), %lld}", feature_code,
detail, len, value);
}
#endif //DSMS_DEBUG_ENABLE