Browse Source

smcinvoke: Fix compilation error

With Bazel some of the warnings are now error.

Change-Id: Ie195c8bc993dce27cf5f2353a8965605ac50ae72
Smita Ghosh 2 years ago
parent
commit
5233220e29
2 changed files with 2 additions and 2 deletions
  1. 1 1
      smcinvoke/smcinvoke_kernel.c
  2. 1 1
      tz_log/tz_log.c

+ 1 - 1
smcinvoke/smcinvoke_kernel.c

@@ -275,7 +275,7 @@ static int get_root_obj(struct Object *rootObj)
 
 	ret = get_root_fd(&root_fd);
 	if (ret) {
-		pr_err("Failed to get root fd, ret = %d\n");
+		pr_err("Failed to get root fd, ret = %d\n", ret);
 		return ret;
 	}
 	*rootObj = tzobject_new(root_fd);

+ 1 - 1
tz_log/tz_log.c

@@ -1764,7 +1764,7 @@ static int tz_log_probe(struct platform_device *pdev)
 	ret = tzdbg_allocate_encrypted_log_buf(pdev);
 	if (ret) {
 		dev_err(&pdev->dev,
-			"Failed to allocate encrypted log buffer\n",
+			" %s: Failed to allocate encrypted log buffer\n",
 			__func__);
 		goto exit_free_qsee_log_buf;
 	}