Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f0d7e63 authored by Yuanfang Zhang's avatar Yuanfang Zhang Committed by Gerrit - the friendly Code Review server
Browse files

coresight: stm: Fix deprecated function issue



'sprintf' has been deprecated, replace it with 'scnprintf'.

Change-Id: Ia56d062ade94c72756d3afeccf741b64800162b5
Signed-off-by: default avatarYuanfang Zhang <zhangyuanfang@codeaurora.org>
parent 32333705
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 *
 * Description: CoreSight System Trace Macrocell driver
 *
@@ -563,7 +563,7 @@ static ssize_t traceid_show(struct device *dev,
	struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent);

	val = drvdata->traceid;
	return sprintf(buf, "%#lx\n", val);
	return scnprintf(buf, PAGE_SIZE, "%#lx\n", val);
}

static ssize_t traceid_store(struct device *dev,