From: Linus Torvalds Date: Thu, 10 May 2007 16:05:00 GMT Subject: Re: [PATCHv2] connect: display connection progress Message-ID: In-Reply-To: <81b0412b0705100439j4e6b072bk1ba19a4f971e5d0c@mail.gmail.com> On Thu, 10 May 2007, Alex Riesen wrote: > > There is only one bit of flags ever used. What are the others for? I actually think it tends to be better to have a "flags" field rather than a boolean, even if it only ends up having one flag. > Why use negative logic? This one I agree with. Ity would be nicer with CONNECT_VERBOSE than with NET_QUIET, and having the tests be if (flags & CONNECT_VERBOSE) .. instead. > What was wrong with plain "int verbose"? I could see wanting to add flags to do things like disable insecure connections etc, so there's certainly nothing saying that "verbose" is the only valid way to do things. > What addresses were tried by connect? That would be _really_ verbose. Maybe a CONNECT_EXTRA_VERBOSE? Linus