From patchwork Sun Apr 5 10:25:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 16413 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n35APh9f024824 for ; Sun, 5 Apr 2009 10:25:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757865AbZDEKZK (ORCPT ); Sun, 5 Apr 2009 06:25:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756248AbZDEKZJ (ORCPT ); Sun, 5 Apr 2009 06:25:09 -0400 Received: from web110814.mail.gq1.yahoo.com ([67.195.13.237]:43977 "HELO web110814.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757865AbZDEKZI (ORCPT ); Sun, 5 Apr 2009 06:25:08 -0400 Received: (qmail 3748 invoked by uid 60001); 5 Apr 2009 10:25:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238927106; bh=MpzIRLd1IA6t2klz0ZO56OmQUg1nCQlyPIUiBktGzEk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=obNwAKH6Q124/J3QyAjSAdvwOUVEXIfQ7lDKjEkPQeaPRx9pisAFMxiA2zK0RsrLxIDpnTH8W6itvqQtpOFrccWs1onlXVim2hfuZaEzTBQs1rKvQ2lUS4GwmIu4YxY00U0ehNaHD4qNX/T5HAQdSL/f3c/Lbf4D6mrbOAy9SU4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=T5tyaNPdOtdhTfn9D8dIapKWk/BmKK7SQJ/saPuPNf0RpR57qNZFhzrajLyfZnaVEc2s+4ciie16bw4GAX6VeAPvruYjZ70O67bqnbe9inGUvP1ERCUt7/WwvIyHHHyrH2u10AOlRDvsw0Em/ZK+dMOGVQDcX3XV/ViHrvz76hA=; Message-ID: <225276.3555.qm@web110814.mail.gq1.yahoo.com> X-YMail-OSG: Cf6NxPYVM1knKGEszQ2EmYa2hw45kEwW6kG7wl7zNpW0PcJnPSIVh7exjYH0ypJQZArxPAikZwwlGfqF3UlpfqmZJX0l9tufsGJaY6s35vQK91LHzWg6R_IVGvgsWv93AYPx.Zm0WwtdXFnaoUTUPovBHh.hZTCJ_6ywcNrl2jNOsW34poif2tfLNmZaHlV8z8DhA9RyLRoYWty8_24wS_GDjbvRagDmwXECmfxije2J_4Kfuk_GvqwRxtgzOKmwqoyGyUlh9enc8NBWqo1yMIy0fhNpv_Vq9gkaM5Jd7OihkHsND.HVpqxplterz7TCFWtTG4hbDtDT_TSCmfHmdAEsHRF3.Czqh7r7fPPd Received: from [199.203.99.233] by web110814.mail.gq1.yahoo.com via HTTP; Sun, 05 Apr 2009 03:25:06 PDT X-Mailer: YahooMailClassic/5.2.15 YahooMailWebService/0.7.289.1 Date: Sun, 5 Apr 2009 03:25:06 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [0904_12] Siano: unified the debug filter module parameter (dvb and core) To: LinuxML MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Uri Shkolnik # Date 1238744721 -10800 # Node ID 5b86da897fbaf03ea4f5bca50abeaad15634f1d9 # Parent 01979ae55ffec22d74b77681613f38bd606be227 [PATCH] [0904_12] Siano: unified the debug filter module parameter (dvb and core) From: Uri Shkolnik The sms_debug module parameter sets the debug filter for the smsmdtv module. It has been moved to the core component, and replace the smsdvb's. Priority: normal Signed-off-by: Uri Shkolnik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 01979ae55ffe -r 5b86da897fba linux/drivers/media/dvb/siano/smscoreapi.c --- a/linux/drivers/media/dvb/siano/smscoreapi.c Fri Apr 03 10:26:48 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smscoreapi.c Fri Apr 03 10:45:21 2009 +0300 @@ -34,8 +34,8 @@ #include "smscoreapi.h" #include "sms-cards.h" -static int sms_dbg; -module_param_named(debug, sms_dbg, int, 0644); +int sms_debug; +module_param_named(debug, sms_debug, int, 0644); MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))"); struct smscore_device_notifyee_t { diff -r 01979ae55ffe -r 5b86da897fba linux/drivers/media/dvb/siano/smscoreapi.h --- a/linux/drivers/media/dvb/siano/smscoreapi.h Fri Apr 03 10:26:48 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smscoreapi.h Fri Apr 03 10:45:21 2009 +0300 @@ -627,6 +627,7 @@ int smscore_led_state(struct smscore_dev int smscore_led_state(struct smscore_device_t *core, int led); /* ------------------------------------------------------------------------ */ +extern int sms_debug; #define DBG_INFO 1 #define DBG_ADV 2 @@ -635,7 +636,7 @@ int smscore_led_state(struct smscore_dev printk(kern "%s: " fmt "\n", __func__, ##arg) #define dprintk(kern, lvl, fmt, arg...) do {\ - if (sms_dbg & lvl) \ + if (sms_debug & lvl) \ sms_printk(kern, fmt, ##arg); } while (0) #define sms_log(fmt, arg...) sms_printk(KERN_INFO, fmt, ##arg) diff -r 01979ae55ffe -r 5b86da897fba linux/drivers/media/dvb/siano/smsdvb.c --- a/linux/drivers/media/dvb/siano/smsdvb.c Fri Apr 03 10:26:48 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smsdvb.c Fri Apr 03 10:45:21 2009 +0300 @@ -63,9 +63,6 @@ static struct list_head g_smsdvb_clients static struct list_head g_smsdvb_clients; static struct mutex g_smsdvb_clientslock; -static int sms_dbg; -module_param_named(debug, sms_dbg, int, 0644); -MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))"); /* Events that may come from DVB v3 adapter */ static void sms_board_dvb3_event(struct smscore_device_t *coredev,