Skip to contentSkip to conversation

parse_config_data()...

DISCUSSION Mukesh Rathor 2 participants 3 messages Sep 22, 2011 – Sep 23, 2011

lore
Share & tools
lore
#0 lore raw

Hi Stefano,

In parse_config_data():

    init_create_info(c_info);  <--- sets hvm and hap to 1, then:.

    c_info->hvm = 0;
    if (!xlu_cfg_get_string (config, "builder", &buf) &&
        !strncmp(buf, "hvm", strlen(buf)))
        c_info->hvm = 1;

    if (!xlu_cfg_get_long (config, "hap", &l))    <-------- already 1
        c_info->hap = l;  <--- letter 'el'

no big deal, but just confusing for someone reading the code...

thanks,
Mukesh

#1 lore raw
Quoted 23 lines · On Thu, 22 Sep 2011 11:30:48 -0700 Mukesh Rathor <[email protected]>…

Hi Stefano,

In parse_config_data():

    init_create_info(c_info);  <--- sets hvm and hap to 1, then:.

    c_info->hvm = 0;
    if (!xlu_cfg_get_string (config, "builder", &buf) &&
        !strncmp(buf, "hvm", strlen(buf)))
        c_info->hvm = 1;

    if (!xlu_cfg_get_long (config, "hap", &l))    <-------- already 1
        c_info->hap = l;  <--- letter 'el'

no big deal, but just confusing for someone reading the code...

thanks,
Mukesh

Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Never mind, my bad... thanks, Mukesh

#2 lore raw
Quoted 18 lines · Mukesh Rathor
Quoted 15 lines · On Thu, 22 Sep 2011 11:30:48 -0700 Mukesh Rathor <[email protected]>…

Hi Stefano,

In parse_config_data():

    init_create_info(c_info);  <--- sets hvm and hap to 1, then:.

    c_info->hvm = 0;
    if (!xlu_cfg_get_string (config, "builder", &buf) &&
        !strncmp(buf, "hvm", strlen(buf)))
        c_info->hvm = 1;

    if (!xlu_cfg_get_long (config, "hap", &l))    <-------- already 1
        c_info->hap = l;  <--- letter 'el'
Quoted 7 lines
Quoted 4 lines

no big deal, but just confusing for someone reading the code...

thanks,
Mukesh

Never mind, my bad... thanks, Mukesh

no problems :-)