From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8217 invoked by alias); 26 Oct 2010 08:53:25 -0000 Received: (qmail 8199 invoked by uid 9737); 26 Oct 2010 08:53:25 -0000 Date: Tue, 26 Oct 2010 08:53:00 -0000 Message-ID: <20101026085325.8197.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/log log.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00091.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2010-10-26 08:53:25 Modified files: lib/log : log.c Log message: Remove bufused for calculation As bufused is assigned 0 in preceding source line clang Idempotent operation Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/log/log.c.diff?cvsroot=lvm2&r1=1.59&r2=1.60 --- LVM2/lib/log/log.c 2010/05/05 22:37:53 1.59 +++ LVM2/lib/log/log.c 2010/10/26 08:53:25 1.60 @@ -359,7 +359,7 @@ _already_logging = 1; memset(&buf, ' ', sizeof(buf)); bufused = 0; - if ((n = dm_snprintf(buf, sizeof(buf) - bufused - 1, + if ((n = dm_snprintf(buf, sizeof(buf) - 1, "%s:%d %s%s", file, line, log_command_name(), _msg_prefix)) == -1) goto done;