提交 91c7bf65 编写于 作者: D Daniel Veillard

PHYP driver cleanups

* libvirt.spec.in: activate phyp and fix the BuildDep to libssh2-devel
* src/phyp/phyp_driver.c: fix a debug macro to use the normal logging API
上级 191053b5
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
%define with_libvirtd 0%{!?_without_libvirtd:1} %define with_libvirtd 0%{!?_without_libvirtd:1}
%define with_uml 0%{!?_without_uml:1} %define with_uml 0%{!?_without_uml:1}
%define with_one 0%{!?_without_one:1} %define with_one 0%{!?_without_one:1}
%define with_phyp 0%{!?_without_phyp:1}
%define with_network 0%{!?_without_network:1} %define with_network 0%{!?_without_network:1}
%define with_storage_fs 0%{!?_without_storage_fs:1} %define with_storage_fs 0%{!?_without_storage_fs:1}
%define with_storage_lvm 0%{!?_without_storage_lvm:1} %define with_storage_lvm 0%{!?_without_storage_lvm:1}
...@@ -24,9 +25,6 @@ ...@@ -24,9 +25,6 @@
%define with_capng 0%{!?_without_capng:0} %define with_capng 0%{!?_without_capng:0}
%define with_netcf 0%{!?_without_netcf:0} %define with_netcf 0%{!?_without_netcf:0}
# default to off
%define with_phyp 0%{!?_without_phyp:0}
# Xen is available only on i386 x86_64 ia64 # Xen is available only on i386 x86_64 ia64
%ifnarch i386 i586 i686 x86_64 ia64 %ifnarch i386 i586 i686 x86_64 ia64
%define with_xen 0 %define with_xen 0
...@@ -196,7 +194,7 @@ BuildRequires: numactl-devel ...@@ -196,7 +194,7 @@ BuildRequires: numactl-devel
BuildRequires: libcap-ng-devel >= 0.5.0 BuildRequires: libcap-ng-devel >= 0.5.0
%endif %endif
%if %{with_phyp} %if %{with_phyp}
BuildRequires: libssh-devel >= 0.3.1 BuildRequires: libssh2-devel
%endif %endif
%if %{with_netcf} %if %{with_netcf}
BuildRequires: netcf-devel BuildRequires: netcf-devel
......
...@@ -56,9 +56,7 @@ ...@@ -56,9 +56,7 @@
#define VIR_FROM_THIS VIR_FROM_PHYP #define VIR_FROM_THIS VIR_FROM_PHYP
#ifdef ENABLE_DEBUG #define PHYP_CMD_DEBUG VIR_DEBUG("COMMAND:%s\n",cmd);
#define PHYP_CMD_DEBUG fprintf(stdout,"%s:%d - COMMAND:%s\n",__FUNCTION__,__LINE__,cmd);
#endif
static int escape_specialcharacters(char *src, char *dst, size_t dstlen); static int escape_specialcharacters(char *src, char *dst, size_t dstlen);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册