linux-mips
[Top] [All Lists]

Re: Could not use printf after init process

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: Could not use printf after init process
From: "wilbur.chan" <wilbur512@gmail.com>
Date: Wed, 11 Nov 2009 07:45:19 +0800
Cc: Linux MIPS Mailing List <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=7WyHLjEBes/Cvs1iJnqKj3HVDzJlq+Rj/vTiAS5QJ54=; b=rAzJF49xJRGTlwaJfpj4Tmu/vMNeEZiOinJO05fR5clv1yfsiTGEKYRZYeRwUKZZJH YRd9KG+vnxBsAkSilSl8zNyxozjbRq7TzUn6X9+iVygl5cV8HyPBzsaOiOytOUcR2wdH CbTosBWSRHsDez/g+9G9EmCsaKzkZX9L8Ju1E=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=u/FPQu+laC8Essg8C7ANesjB3j8wjST+FqiHbppw8EXZVB3QstCJu+b0a+X/7IjQWc AQVC+tTbQGf2wH9BVOdzBxqY7xX000tKt3Ou0jmNZ7gYBsofy0uNYXMc4LWwFAOFt+Rj l9YXAJOO80KNCMqTcyXw6B8uRFsc/MkAkV6FY=
In-reply-to: <20091110160354.GA7367@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <e997b7420911100737k3563b9a5l5c6463ba078e9d9@mail.gmail.com> <20091110160354.GA7367@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org


2009/11/11 Ralf Baechle <ralf@linux-mips.org>
On Tue, Nov 10, 2009 at 11:37:20PM +0800, wilbur.chan wrote:


I assume you meant printk, not printf.

If kernel_execve() is successful the function won't return so code following
that statement won't be executed.

 Ralf

It was 'printf' in init process which was generated by busybox.
 
After I replaced 'init' with a simple 'hello wolrd' executable , which was like kernel_execve("/hello wolrd"),
 
it could not print the 'hello wolrd' either.
 
 
 
 
<Prev in Thread] Current Thread [Next in Thread>