-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yep Yep! so do I :P

Go ahead, with that fix, I can't found any problem for now.

Acked by: David Goulet <[email protected]>

On 10-10-26 02:53 AM, Nils Carlson wrote:
> I'll take that as an ACK and push now!
> 
> :-)
> 
> I'm really tired of that patch!
> 
> /Nils 
> 
> -----Original Message-----
> From: David Goulet [mailto:[email protected]] 
> Sent: den 25 oktober 2010 17:59
> To: Nils Carlson
> Cc: [email protected]
> Subject: Re: [ltt-dev] [UST PATCH] Introduce a new communication protocol for 
> UST v4
> 
> 
> 
> On 10-10-25 02:40 AM, Nils Carlson wrote:
>> +
>> +static int scan_ch_and_num(const char *ch_num, char **channel, 
>> +unsigned int *num) {
>> +    int result;
>> +
>> +    *channel = NULL;
>> +
>> +    result = sscanf(ch_num, "%a[^/]/%u", channel, num);
>> +    if (result == 0) {
>> +            ERR("Failed to parse channel and number, got EOF");
>> +            return -1;
>> +    } else if (result < 0) {
>> +            PERROR("Failed to parse channel and number");
>> +            return -1;
>> +    } else if (result != 2) {
>> +            ERR("Failed to parse channel and number");
>> +            if (channel) {
>> +                    free(channel);
> 
> *channel
> 
> Might want to have the same result handling then the previous function that 
> you changed using only result != 2.
> 
> This review should be the last one ;) Everything seems good! It passes every 
> torture test and standard test we and I have :)
> 
> Cheers!
> David
> 
>> +            }
>> +            return -1;
>> +    } else if (result == 2) {
>> +            return 0;
>> +    }
>> +}
>> +
>>  int main(int argc, char *argv[])
>>  {
>>      pid_t *pidit;
>> @@ -301,16 +352,31 @@ int main(int argc, char *argv[])
>>                              break;
>>                      case ENABLE_MARKER:
>>                              if (opts.regex) {

- -- 
David Goulet
LTTng project, DORSAL Lab.

1024D/16BD8563
BE3C 672B 9331 9796 291A  14C6 4AF7 C14B 16BD 8563
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkzGxssACgkQSvfBSxa9hWMk1ACguyvA1nqBPXW9BCWixeaTJQWl
hxkAniqGiOgi48a03OWAeWiN6PrSCsi9
=5zmG
-----END PGP SIGNATURE-----

_______________________________________________
ltt-dev mailing list
[email protected]
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev

Reply via email to