From owner-freebsd-net@FreeBSD.ORG Tue Feb 5 14:44:30 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EBE2F944 for ; Tue, 5 Feb 2013 14:44:30 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-ia0-x232.google.com (ia-in-x0232.1e100.net [IPv6:2607:f8b0:4001:c02::232]) by mx1.freebsd.org (Postfix) with ESMTP id B2030DC4 for ; Tue, 5 Feb 2013 14:44:30 +0000 (UTC) Received: by mail-ia0-f178.google.com with SMTP id y26so228297iab.9 for ; Tue, 05 Feb 2013 06:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=iXBmQA2madBCn0SD3buZ9Ee3UdvCCyxO5Tsk+vNV32g=; b=W7mbqANS56RR09Z5Qzcu/8Tzp4ADEFN8aQMstrRNQa41IjflFmNoZUTU71TaibJ0Aa 6yd6m40HHZghUcLwLfYUZQoSAzkl3x4X2kmaRLye8pBG5rn/Vk4dbsK5S9jyNMEO57vo 8MPZ8hEhBIKZoUelgsYLOt+27Gq0p3wZSuUeQhKmyoQ/DuJ0ed4QO6M9itKElSvFITlg BMkaEFursl2HsISgl7cQOmrl4r3EkYThB9WtkAGaByEwXxuk52p/tvwtdNofVdawJscD q7ZuuBqXVVIahVgtYJfUybVTfuskzO7vRkpHI52HrqOa8LGkOUJPcAqlx6M7U2kUDLOP vQeQ== X-Received: by 10.42.67.10 with SMTP id r10mr22552222ici.7.1360075463361; Tue, 05 Feb 2013 06:44:23 -0800 (PST) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.64.38.65 with HTTP; Tue, 5 Feb 2013 06:44:03 -0800 (PST) From: h bagade Date: Tue, 5 Feb 2013 18:14:03 +0330 X-Google-Sender-Auth: Z8RJ6ElSsSuBgltyRZlFr-0cTQU Message-ID: Subject: debug em driver code after applying patch To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2013 14:44:31 -0000 Hi all, I applied patch on em driver code and I want to check how it is working on different situations. I need to put some output in different parts of the code to trace what's going on in different situations. I've tried to write to files or executing commands(like echo) using system function, but in these two methods, by adding headers some conflicting issues happen which I don't know how to resolve! I've tried to use it's macros like INIT_DEBUGOUT to print some messages but it only works on startup, not when the system is running! I don't know how to print out messages to debug the code?! Is there anybody to help me handle it? I really need help.