Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751734AbWIHGfS (ORCPT ); Fri, 8 Sep 2006 02:35:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751634AbWIHGfS (ORCPT ); Fri, 8 Sep 2006 02:35:18 -0400 Received: from outbound0.mx.meer.net ([209.157.153.23]:34575 "EHLO outbound0.sv.meer.net") by vger.kernel.org with ESMTP id S1751734AbWIHGfP (ORCPT ); Fri, 8 Sep 2006 02:35:15 -0400 Subject: Re: Re: [patch 6/6] process filtering for fault-injection capabilities From: Don Mullis To: lkml Cc: Akinobu Mita Content-Type: text/plain Date: Thu, 07 Sep 2006 23:29:57 -0700 Message-Id: <1157696997.9460.99.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1598 Lines: 50 Suggested changes, implemented by patch below: 1) Reorder kernel command line args alphabetically -- lets output of `ls /debug/failslab` serve as a handy reminder of the arg bindings. 2) Rename a variable to agree with the /debug file name. --- lib/should_fail.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) Index: linux-2.6.17/lib/should_fail.c =================================================================== --- linux-2.6.17.orig/lib/should_fail.c +++ linux-2.6.17/lib/should_fail.c @@ -13,18 +13,20 @@ int setup_should_fail(struct should_fail unsigned long interval; int times; int space; - unsigned long filter; + unsigned long process_filter; - /* ",,,," */ - if (sscanf(str, "%lu,%lu,%d,%d,%lu", &probability, &interval, ×, - &space, &filter) < 5) - return 0; + /* ",,,," */ + if (sscanf(str, "%lu,%lu,%lu,%d,%d", &interval, + &probability, &process_filter, &space, ×) < 5) { + printk( "SHOULD_FAIL: failed to parse arguments\n"); + return 0; + } data->probability = probability; data->interval = interval; atomic_set(&data->times, times); atomic_set(&data->space, space); - data->process_filter = filter; + data->process_filter = process_filter; return 1; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/