Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 17:51:30 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 104072 for review
Message-ID:  <200608151751.k7FHpUpN036220@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104072

Change 104072 by millert@millert_macbook on 2006/08/15 17:50:45

	Use __func__ in error message instead of hard-coding the
	wrong thing (cut & pasto).  Also replace an instance of
	__FUNCTION__ (old gccism) with __func__ (c99).

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#2 (text+ko) ====

@@ -691,8 +691,8 @@
 		goto dosclass;
 	}
 	if (error) {
-		printf("sebsd_update_vnode_from_extattr: ERROR %d returned "
-		    " by mac_vnop_getxattr()\n", error);
+		printf("%s: ERROR %d returned by mac_vnop_getxattr()\n",
+		    __func__, error);
 		return (error); /* Fail closed */
 	}
 
@@ -702,8 +702,8 @@
 
 	error = security_context_to_sid(context, context_len, &vsec->sid);
 	if (error) {
-		printf("sebsd_update_vnode_from_extattr: ERROR mapping "
-		       "context to sid: %.*s\n", context_len, context);
+		printf("%s: ERROR mapping context to sid: %.*s\n",
+		    __func__, context_len, context);
 		return (0);	/* TBD bad, bad, bad */
 	}
 
@@ -1256,7 +1256,7 @@
 		break;
 	default:
 		printf("%s:  security_fs_use(%s) returned unrecognized "
-		    "behavior %d\n", __FUNCTION__, mp->mnt_vtable->vfc_name,
+		    "behavior %d\n", __func__, mp->mnt_vtable->vfc_name,
 		    behavior);
 		behavior = SECURITY_FS_USE_NONE;
 		break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608151751.k7FHpUpN036220>