From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 11 Nov 2009 00:45:35 +0100 (CET) Received: from mail-yw0-f173.google.com ([209.85.211.173]:54765 "EHLO mail-yw0-f173.google.com" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S1492578AbZKJXp1 (ORCPT ); Wed, 11 Nov 2009 00:45:27 +0100 Received: by ywh3 with SMTP id 3so884792ywh.22 for ; Tue, 10 Nov 2009 15:45:20 -0800 (PST) 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= MIME-Version: 1.0 Received: by 10.91.121.17 with SMTP id y17mr1178951agm.27.1257896719823; Tue, 10 Nov 2009 15:45:19 -0800 (PST) In-Reply-To: <20091110160354.GA7367@linux-mips.org> References: <20091110160354.GA7367@linux-mips.org> Date: Wed, 11 Nov 2009 07:45:19 +0800 Message-ID: Subject: Re: Could not use printf after init process From: "wilbur.chan" To: Ralf Baechle Cc: Linux MIPS Mailing List Content-Type: multipart/alternative; boundary=0016e640d1f0264bf604780ce70c Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 24825 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wilbur512@gmail.com Precedence: bulk X-list: linux-mips --0016e640d1f0264bf604780ce70c Content-Type: text/plain; charset=ISO-8859-1 2009/11/11 Ralf Baechle > 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. --0016e640d1f0264bf604780ce70c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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


I assume you meant printk, not printf.

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

=A0Ral= f

It was 'printf' in init process which was generated by bus= ybox.
=A0
After I replaced 'init' with a simple 'hello wolrd'=A0= executable , which was like kernel_execve("/hello wolrd"),
=A0
it could not print the 'hello wolrd' either.
=A0
=A0
=A0
=A0
--0016e640d1f0264bf604780ce70c--