Updates from review and testing of commit a0867a7f4f.

This commit is contained in:
Gregory Nutt
2019-08-26 09:46:05 -06:00
parent a0867a7f4f
commit 8b62bc96f5
4 changed files with 29 additions and 15 deletions
+3 -5
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* fs/procfs/fs_procfsversion.c
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Copyright (C) 2018-2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -226,17 +226,15 @@ static ssize_t version_read(FAR struct file *filep, FAR char *buffer,
"%s\n",
CONFIG_VERSION_STRING, CONFIG_VERSION_BUILD,
CONFIG_GIT_REVISION_STR);
#else
# if defined(__DATE__) && defined(__TIME__)
#elif defined(__DATE__) && defined(__TIME__)
linesize = snprintf(attr->line, VERSION_LINELEN,
"NuttX version %s %s %s %s\n",
CONFIG_VERSION_STRING, CONFIG_VERSION_BUILD,
__DATE__, __TIME__);
# else
#else
linesize = snprintf(attr->line, VERSION_LINELEN,
"NuttX version %s %s\n",
CONFIG_VERSION_STRING, CONFIG_VERSION_BUILD);
# endif
#endif
/* Save the linesize in case we are re-entered with f_pos > 0 */