Files
acrn-hypervisor/devicemodel/include/dm_kmsg.h
Wei Liu 92d75f0dc2 dm: replace string function api for acrn-dm
String function of strlen()/vsnprintf() shuould be replaced.
This patch remove the strlen(). And vsnprintf() replaced by vasprintf().

Tracked-On: #2687
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
Reviewed-by: Tianhua Sun <tianhuax.s.sun@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com>
2019-03-07 12:21:23 +08:00

17 lines
282 B
C

/*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef _DM_KMSG_H_
#define _DM_KMSG_H_
#define KERN_NODE "/dev/kmsg"
#define KMSG_FMT "dm_run:"
void write_kmsg(const char *log, ...);
#endif /* _DM_KMSG_H_ */