extensions CHANGE support for when statement in extension instances
diff --git a/src/printer_yang.c b/src/printer_yang.c
index 783da05..996eeec 100755
--- a/src/printer_yang.c
+++ b/src/printer_yang.c
@@ -2187,6 +2187,9 @@
                     YANG_PRINT_EXTCOMPLEX_STRUCT_M(LY_STMT_RANGE, struct lys_restr, yang_print_restr,
                                                    "range", ((struct lys_restr *)(*pp))->expr);
                     break;
+                case LY_STMT_WHEN:
+                    YANG_PRINT_EXTCOMPLEX_STRUCT_M(LY_STMT_WHEN, struct lys_when, yang_print_when);
+                    break;
                 default:
                     /* TODO */
                     break;