From f0656b661c97281f56d91e24224334b7e4d6ebc4 Mon Sep 17 00:00:00 2001 From: David Reveman Date: Thu, 17 May 2018 15:40:18 -0400 Subject: [PATCH] virtwl: Fix wayland-dmabuf argument typo. Remove "enable-" prefix from wayland-dmabuf argument. This prefix is not used when specifying the argument in run_vm. BUG=chromium:837209 TEST=crosvm usage output matches what is a valid argument Change-Id: Ib9402842c6ce58b4b3d1646c0df3acb5c5de4b0c Reviewed-on: https://chromium-review.googlesource.com/1064725 Commit-Ready: David Reveman Tested-by: David Reveman Reviewed-by: Zach Reizner --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7c248e204c..724fc7a4d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -274,9 +274,9 @@ fn set_argument(cfg: &mut Config, name: &str, value: Option<&str>) -> argument:: cfg.wayland_socket_path = Some(wayland_socket_path); } #[cfg(feature = "wl-dmabuf")] - "enable-wayland-dmabuf" => { + "wayland-dmabuf" => { cfg.wayland_dmabuf = true - }, + } "socket" => { if cfg.socket_path.is_some() { return Err(argument::Error::TooManyArguments("`socket` already given".to_owned()));