mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-10-31 00:11:51 +01:00 
			
		
		
		
	event: Export event_type_name()
Export this function so it can be used with initcall debugging. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									1312327680
								
							
						
					
					
						commit
						fb7dfca28a
					
				| @ -49,7 +49,7 @@ const char *const type_name[] = { | |||||||
| _Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size"); | _Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size"); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| static const char *event_type_name(enum event_t type) | const char *event_type_name(enum event_t type) | ||||||
| { | { | ||||||
| #if CONFIG_IS_ENABLED(EVENT_DEBUG) | #if CONFIG_IS_ENABLED(EVENT_DEBUG) | ||||||
| 	return type_name[type]; | 	return type_name[type]; | ||||||
|  | |||||||
| @ -230,6 +230,14 @@ void event_show_spy_list(void); | |||||||
|  */ |  */ | ||||||
| int event_manual_reloc(void); | int event_manual_reloc(void); | ||||||
| 
 | 
 | ||||||
|  | /**
 | ||||||
|  |  * event_type_name() - Get the name of an event type | ||||||
|  |  * | ||||||
|  |  * @type: Type to check | ||||||
|  |  * Return: Name of event, or "(unknown)" if not known | ||||||
|  |  */ | ||||||
|  | const char *event_type_name(enum event_t type); | ||||||
|  | 
 | ||||||
| /**
 | /**
 | ||||||
|  * event_notify() - notify spies about an event |  * event_notify() - notify spies about an event | ||||||
|  * |  * | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user