tools:acrn-crashlog: Get reboot reason in acrnprobe

Get system reboot reason from kernel commandline.

Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.com>
This commit is contained in:
Liu, Xinwu
2018-07-02 15:58:28 +08:00
committed by Jack Ren
parent 2d03706dd5
commit 0683b16573
3 changed files with 65 additions and 46 deletions

View File

@@ -19,4 +19,6 @@
* limitations under the License.
*/
extern void read_startupreason(char *startupreason);
#define REBOOT_REASON_SIZE 32
extern void read_startupreason(char *startupreason, const size_t limit);