Skip to contentSkip to conversation

xl: Don't warn on using 'deprecated' mode selection

PATCH In review George Dunlap 2 participants 2 messages Jan 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: Don't warn on using 'deprecated' mode selection

We generally support old config formats indefinintely (see the disk format) without emitting warnings.

---
This is a candidate to backport to 4.10.

CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
CC Roger Pau Monne <[email protected]>
CC Jan Beulich <[email protected]>
---
 tools/xl/xl_parse.c | 3 ---
 1 file changed, 3 deletions(-)
tools/xl/xl_parse.c +0 -3
index d19f85d37c..2f263ca5bd 100644
@@ -869,9 +869,6 @@ void parse_config_data(const char *config_source,
     if (!xlu_cfg_get_string(config, "builder", &buf, 0)) {
         libxl_domain_type builder_type;
 
-        if (c_info->type == LIBXL_DOMAIN_TYPE_INVALID)
-            fprintf(stderr,
-"The \"builder\" option is being deprecated, please use \"type\" instead.\n");
         if (!strncmp(buf, "hvm", strlen(buf)))
             builder_type = LIBXL_DOMAIN_TYPE_HVM;
         else if (!strncmp(buf, "generic", strlen(buf)))
Signature · 7 lines
2.15.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw

George Dunlap writes ("[PATCH] xl: Don't warn on using 'deprecated' mode selection"):

Quoted 2 lines

We generally support old config formats indefinintely (see the disk format) without emitting warnings.

Quoted 1 line

This is a candidate to backport to 4.10.

I agree.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel