lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 15 Jul 2011 17:57:11 +0200
From:	Bart Van Assche <bvanassche@....org>
To:	Joe Perches <joe@...ches.com>
Cc:	Jason Baron <jbaron@...hat.com>, gregkh@...e.de,
	jim.cromie@...il.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 11/11] dynamic_debug: use a single printk() to emit msgs

On Fri, Jul 15, 2011 at 5:48 PM, Joe Perches <joe@...ches.com> wrote:
> On Fri, 2011-07-15 at 12:05 +0200, Bart Van Assche wrote:
>> Not that's it important, but this change makes is possible to
>> eliminate the tid[] and lineno[] arrays again. Has that been
>> considered ?
>
> tid and lineno are decimal.  Not using intermediate
> arrays would require awkward contortions to snprintf
> them without emitting 0 in the output.

Sorry, but I do not agree with the above. The current implementation
of __dynamic_pr_debug() shows that an implementation without temporary
arrays does not require any awkward constructs. See e.g.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=lib/dynamic_debug.c
for the source code of the current implementation of
__dynamic_pr_debug().

This may be subjective, but my opinion is that following that style
results in shorter and more elegant code than the approach with the
temporary arrays proposed in patch 11/11.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ