[Ovirt-devel] [PATCH node] Changed the size of the buffers to 768 bytes.

Steve Linabery slinabery at redhat.com
Wed Apr 15 15:27:08 UTC 2009


On Wed, Apr 15, 2009 at 11:11:50AM -0400, Darryl L. Pierce wrote:
> Also removed the customize buffer size for CPU flags so that all
> buffers are consistent in length.
> 
> Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
> ---
>  ovirt-identify-node/ovirt-identify-node.h |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/ovirt-identify-node/ovirt-identify-node.h b/ovirt-identify-node/ovirt-identify-node.h
> index e608051..bf439bd 100644
> --- a/ovirt-identify-node/ovirt-identify-node.h
> +++ b/ovirt-identify-node/ovirt-identify-node.h
> @@ -45,8 +45,7 @@
>  #include <sys/types.h>
>  #include <sys/socket.h>
>  
> -#define BUFFER_LENGTH 128
> -#define CPU_FLAGS_BUFFER_LENGTH 256
> +#define BUFFER_LENGTH 768
>  
>  typedef struct _cpu_info {
>      char cpu_num[BUFFER_LENGTH];
> @@ -58,7 +57,7 @@ typedef struct _cpu_info {
>      char cpuid_level[BUFFER_LENGTH];
>      char speed[BUFFER_LENGTH];
>      char cache[BUFFER_LENGTH];
> -    char flags[CPU_FLAGS_BUFFER_LENGTH];
> +    char flags[BUFFER_LENGTH];
>      struct _cpu_info* next;
>  } t_cpu_info;
>  
> -- 
> 1.6.0.6

Works as expected. ACK.

Steve




More information about the ovirt-devel mailing list