linux-mips
[Top] [All Lists]

[PATCH] mips: kernel/vpe.c: fix wrong KERN_WARNING message

To: Ralf Baechle <ralf@linux-mips.org>, David Howells <dhowells@redhat.com>, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: [PATCH] mips: kernel/vpe.c: fix wrong KERN_WARNING message
From: Cong Ding <dinggnu@gmail.com>
Date: Mon, 14 Jan 2013 17:23:29 +0000
Cc: Cong Ding <dinggnu@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=MO5qI+NeMafd+DAeDXrxddwLJhGZWaqUpn0xDWRa4SI=; b=ICaF5h+YoPXsYXlTZFzjQ4SDGZUbi+NBxyqxs/D7hIBJ+PLHkkGmXOWg20nE8f2wdq 7Ng9DQiwl7AobeYHXXre+ZYf8VN5KymfnA/wtvwXmdSQWC47nSc5F0d7tZ8ArzL648Pn pkyceTuYdnOTEKsG3gp+BOhYKz6TYmgPjOJsncYaKwgCYRMDy4tfJm5yod/Es2CtOUbG y+FUAsqa+9vPxWdtQ4OFyziJD1koEtXva2tXd3QUrHlfMsu9Tc87EdRmpMuzqwwCTp7Z 5hHQM17cO0JokS+JI4vwqTFMoUHEjEqIaL+Xqbi2BTdDAY+neTBGzEWJnxCngti7JCGG oR5g==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
in the printk, the variable t euqals to NULL, so there is no t->index, we use
v->tc->index instead.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
---
 arch/mips/kernel/vpe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index eec690a..3e20c33 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -705,7 +705,7 @@ static int vpe_run(struct vpe * v)
 
                        printk(KERN_WARNING
                               "VPE loader: TC %d is already in use.\n",
-                               t->index);
+                               v->tc->index);
                        return -ENOEXEC;
                }
        } else {
-- 
1.7.9.5


<Prev in Thread] Current Thread [Next in Thread>