From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 22 13:38:52 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 918C51065672 for ; Mon, 22 Nov 2010 13:38:52 +0000 (UTC) (envelope-from krivenok.dmitry@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5CD728FC12 for ; Mon, 22 Nov 2010 13:38:52 +0000 (UTC) Received: by iwn39 with SMTP id 39so8595754iwn.13 for ; Mon, 22 Nov 2010 05:38:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=0zKvLp1QtcWH1LwJAaJhpnMEbjwafsNhPXl406GIhZQ=; b=najvh8Vxihk3XwBlNqFTdoVk+0wzyK5YLJdUUqBYCXVVwP1SyMXAybEivKXqXC/ycJ 1VxQOirawF3r8911wBgJg2pD1O9kDm0hh2Q/FYAC6e5VkJJeIT9vWKel7qL/h7aytGm3 pUiB5HKZJFKcbLBWf5+Wp3PEMEAL/83D3C4KM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NanPHJTObK8czkJnLmJ6riVNAia4z9ud4u8Q2gXNgrFO3LGOOcc2evZx8Ck7ghcPRu yIFWrLMkORPWsVqSxQSq/yQjGbc1Fo0+6yT45vlF0L1NuYVxB6wC2Zk4/JpwHdquTyH5 0lhGG9RD5NhAC2vcWAbf9HPjxzrbcLFomg2dE= MIME-Version: 1.0 Received: by 10.231.14.8 with SMTP id e8mr6900039iba.71.1290433130701; Mon, 22 Nov 2010 05:38:50 -0800 (PST) Received: by 10.231.152.2 with HTTP; Mon, 22 Nov 2010 05:38:50 -0800 (PST) Date: Mon, 22 Nov 2010 16:38:50 +0300 Message-ID: From: Dmitry Krivenok To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: printf doesn't work from kernel modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 13:38:52 -0000 Hello Hackers, Recently I installed 8.1 on my laptop and recompiled the kernel. The system works fine, but I have a strange problem with my own trivial kernel module. I noticed that printf function doesn't produce any output (according to dmesg) if I call it from a module. Note, that the same module works perfectly on another 8.1 and CURRENT systems. Moreover, I added debug message (printf ("Bla bla bla\n");) in my kernel and found that it works fine (i.e. works if compiled directly in kernel, but doesn't work from module). Same effect with stock 8.1 kernel. I see the same problem with examples in /usr/share/examples/kld. I don't believe this is a real problem in FreeBSD. I'm sure this is some kind of configuration issue, but I cannot understand what exactly is wrong. What could cause such behaviour? Any ideas? Thanks! -- Sincerely yours, Dmitry V. Krivenok e-mail: krivenok.dmitry@gmail.com skype: krivenok_dmitry jabber: krivenok_dmitry@jabber.ru icq: 242-526-443