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

Commit 6df555c1 authored by David Binder's avatar David Binder Committed by Greg Kroah-Hartman
Browse files

staging: unisys: visorbus: visorchipset.c: Fix SonarQube sprintf findings



Fixes two sprintf invocations where we attempt to format an unsigned
integer as a signed integer.

Signed-off-by: default avatarDavid Binder <david.binder@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df47f0ae
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ static ssize_t error_show(struct device *dev, struct device_attribute *attr,
				&error, sizeof(u32));
	if (err)
		return err;
	return sprintf(buf, "%i\n", error);
	return sprintf(buf, "%u\n", error);
}

static ssize_t error_store(struct device *dev, struct device_attribute *attr,
@@ -245,7 +245,7 @@ static ssize_t textid_show(struct device *dev, struct device_attribute *attr,
	if (err)
		return err;

	return sprintf(buf, "%i\n", text_id);
	return sprintf(buf, "%u\n", text_id);
}

static ssize_t textid_store(struct device *dev, struct device_attribute *attr,