diff options
Diffstat (limited to 'usr/src/cmd/picl')
| -rw-r--r-- | usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c b/usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c index 2adc6a64f3..ecda8213a9 100644 --- a/usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c +++ b/usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,12 +19,10 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * This plugin creates memory configuration nodes and properties in the * PICL tree for Cheetah platforms. @@ -707,6 +704,7 @@ init_mc(void) struct dirent *retp; char path[PATH_MAX]; int found = 0; + int valid_entry = 0; /* open the directory */ if ((dirp = opendir(MC_DIR)) == NULL) { @@ -734,11 +732,14 @@ init_mc(void) found = 1; break; } + if (errno != ENOENT) + valid_entry = 1; } (void) closedir(dirp); if (!found) { - syslog(LOG_ERR, EM_INIT_MC_FAILED); + if (valid_entry) + syslog(LOG_ERR, EM_INIT_MC_FAILED); return (-1); } |
