[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH 7/7] Update lvm2app interactive unit test for vg/lv tags.



On 16.2.2010 20:39, Dave Wysochanski wrote:
> Simple test of vg/lv tag addition/deletion.
> 
> Signed-off-by: Dave Wysochanski <dwysocha redhat com>
> ---
>  
>  	list = lvm_list_vg_uuids(libh);
>  	printf("VG uuids:\n");
>  	dm_list_iterate_items(strl, list) {
> -		tmp = strl->str;
> -		printf("%s\n", tmp);
> +		printf("%s\n", strl->str);


Simplier:  puts(strl->str);

adds trailing '\n' automaticaly.

Zdenek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]