From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sn2c3-0002ct-Dh for qemu-devel@nongnu.org; Fri, 06 Jul 2012 03:06:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sn2bx-0005dR-9s for qemu-devel@nongnu.org; Fri, 06 Jul 2012 03:05:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sn2bx-0005dM-1Z for qemu-devel@nongnu.org; Fri, 06 Jul 2012 03:05:53 -0400 Message-ID: <4FF68E47.4090204@redhat.com> Date: Fri, 06 Jul 2012 09:05:43 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1341222087-24920-1-git-send-email-pbonzini@redhat.com> <1341222087-24920-3-git-send-email-pbonzini@redhat.com> <4FF3F1E6.1040508@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 02/14] scsi: add a qdev property for the disk's WWN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org Il 05/07/2012 20:03, Blue Swirl ha scritto: > > > > + if (s->wwn) { > > > > + outbuf[buflen++] = 0x1; // Binary > > > > + outbuf[buflen++] = 0x3; // NAA > > > > + outbuf[buflen++] = 0; // reserved > > > > > > C99 comments. > > > > Just following the style of this code. Feel free to send a patch to > > replace with #defines. > > That's not how we should work. New code should be compliant with our > goals. Pushing the responsibility for fixing issues to other people > does not scale. I believe the coding style are attacking the wrong problem. It's end-of-line comments that should be avoided in favor of #defines, packed structs, designated initializers, etc. But for end-of-line comments, C++ comments are superior to /* */ comments. I do plan to fix the clarity issue with SCSI data structures and constants. But for now, the best compromise is to keep C++ comments IMHO. I'm not pushing the responsibility to other people in general, but if they think C++ comments are a major issue they can send patches. Paolo