[Spice-devel] [PATCH spice-streaming-agent 3/9] Remove the arg_error macro

Frediano Ziglio fziglio at redhat.com
Thu Jun 14 08:46:27 UTC 2018


> 
> It doesn't help anything.
> 
> Signed-off-by: Lukáš Hrázký <lhrazky at redhat.com>

Acked-by: Frediano Ziglio <fziglio at redhat.com>

> ---
>  src/spice-streaming-agent.cpp | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
> index aef49c7..ca10d3b 100644
> --- a/src/spice-streaming-agent.cpp
> +++ b/src/spice-streaming-agent.cpp
> @@ -386,8 +386,6 @@ do_capture(StreamPort &stream_port, FrameLog &frame_log)
>      }
>  }
>  
> -#define arg_error(...) syslog(LOG_ERR, ## __VA_ARGS__);
> -
>  int main(int argc, char* argv[])
>  {
>      const char *stream_port_name =
>      "/dev/virtio-ports/org.spice-space.stream.0";
> @@ -431,7 +429,7 @@ int main(int argc, char* argv[])
>          case 'c': {
>              char *p = strchr(optarg, '=');
>              if (p == NULL) {
> -                arg_error("wrong 'c' argument %s\n", optarg);
> +                syslog(LOG_ERR, "wrong 'c' argument %s\n", optarg);
>                  usage(argv[0]);
>              }
>              *p++ = '\0';

Frediano


More information about the Spice-devel mailing list