summaryrefslogtreecommitdiffstats
path: root/svm/svm_test.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-07-08 14:44:23 -0400
committerDave Barach <dave@barachs.net>2016-07-08 14:44:38 -0400
commit8a7fb0cf6844ed09173fd58224f7753a1b504cf4 (patch)
tree45e21bd6bac95034fd589daf0ea898c6ede80afa /svm/svm_test.c
parent49a6963b1387bf7535f589f02ffc99de5b59192f (diff)
fd-io-styleify for svm
Change-Id: I816de8b1f255dc3bc6d2904566ea0b0f68fac5d8 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'svm/svm_test.c')
-rw-r--r--svm/svm_test.c39
1 files changed, 24 insertions, 15 deletions
diff --git a/svm/svm_test.c b/svm/svm_test.c
index a93ca4889b2..ab0b9e248e6 100644
--- a/svm/svm_test.c
+++ b/svm/svm_test.c
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-/*
+/*
*------------------------------------------------------------------
* svm_test.c -- brain police
*------------------------------------------------------------------
@@ -43,28 +43,37 @@
#include "svm.h"
-int main (int argc, char **argv)
+int
+main (int argc, char **argv)
{
- svm_region_t *root_rp, *rp;
- svm_map_region_args_t *a = 0;
+ svm_region_t *root_rp, *rp;
+ svm_map_region_args_t *a = 0;
- vec_validate (a, 0);
+ vec_validate (a, 0);
- root_rp = svm_region_init();
+ root_rp = svm_region_init ();
- ASSERT (root_rp);
+ ASSERT (root_rp);
- a->name = "/qvnet";
- a->size = (4<<10);
+ a->name = "/qvnet";
+ a->size = (4 << 10);
- rp = svm_region_find_or_create (root_rp, a);
+ rp = svm_region_find_or_create (root_rp, a);
- ASSERT (rp);
+ ASSERT (rp);
- *((u32 *)rp->data_base) = 0xdeadbeef;
- svm_region_unmap (root_rp, rp);
+ *((u32 *) rp->data_base) = 0xdeadbeef;
+ svm_region_unmap (root_rp, rp);
- fformat(stdout, "exiting...\n");
+ fformat (stdout, "exiting...\n");
- exit (0);
+ exit (0);
}
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */