mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Tweaked debug output
- Changed "No more free space" to be an error as suggested by davidefer - Tweaked output to be more parsable (no space between lfs and warn)
This commit is contained in:
		
							
								
								
									
										2
									
								
								lfs.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								lfs.c
									
									
									
									
									
								
							| @@ -471,7 +471,7 @@ static int lfs_alloc(lfs_t *lfs, lfs_block_t *block) { | ||||
|  | ||||
|         // check if we have looked at all blocks since last ack | ||||
|         if (lfs->free.ack == 0) { | ||||
|             LFS_WARN("No more free space %"PRIu32, | ||||
|             LFS_ERROR("No more free space %"PRIu32, | ||||
|                     lfs->free.i + lfs->free.off); | ||||
|             return LFS_ERR_NOSPC; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user