equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
126 |
126 |
127 // reading -- |
127 // reading -- |
128 |
128 |
129 enum { |
129 enum { |
130 BOOT = 1, |
130 BOOT = 1, |
131 NON_EXIST = 2, |
131 NON_EXIST = 2 |
132 REQUIRED = 3 |
|
133 }; |
132 }; |
134 |
133 |
135 virtual const char* type_name(int type) { |
134 virtual const char* type_name(int type) { |
136 switch (type) { |
135 switch (type) { |
137 case BOOT: return "BOOT"; |
136 case BOOT: return "BOOT"; |
138 case NON_EXIST: return "NON_EXIST"; |
137 case NON_EXIST: return "NON_EXIST"; |
139 case REQUIRED: return "REQUIRED"; |
|
140 default: ShouldNotReachHere(); return "?"; |
138 default: ShouldNotReachHere(); return "?"; |
141 } |
139 } |
142 } |
140 } |
143 |
141 |
144 virtual void print_path(int type, const char* path); |
142 virtual void print_path(int type, const char* path); |