소스 검색

[main] Print an "initialising devices" banner

Some devices take a very long time to initialise.  This can make it
difficult to visually distinguish between the error cases of failing
to start executing C code and failing to initialise a device.

Add a "gPXE initialising devices..." message.  The trailing ellipsis
indicates to the user that this may take some time, and the presence
of the message indicates to the developer that relocation etc. all
succeeded.
tags/v0.9.7
Michael Brown 16 년 전
부모
커밋
3e220aa73e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      src/core/main.c

+ 3
- 0
src/core/main.c 파일 보기

@@ -37,6 +37,9 @@ static struct feature features_end[0] __table_end ( struct feature, features );
37 37
 __asmcall int main ( void ) {
38 38
 	struct feature *feature;
39 39
 
40
+	/* Some devices take an unreasonably long time to initialise */
41
+	printf ( PRODUCT_SHORT_NAME " initialising devices...\n" );
42
+
40 43
 	initialise();
41 44
 	startup();
42 45
 

Loading…
취소
저장